How to hash the security answers?

Hello everyone,

I want to hash the security answer of an employee to compare to the table QERPasswordQueryAndAnswer, someone knows how to hash the string?

Or if has a better way to compare the answers to the database?

Thank you,

Vinicius Floriano