I am working on a VB project and to store the passwords in the database (SQL Server), the

client wants us to use hash algorithms like SHA-1 to perform a one way encryption of the

password and save only the hash value in the database.

I currently have very little knowledge on how this can be done. Please provide details (like

procedure, sample code, additional resource links etc.) on this if you can.

Thanks in advance