hashing in c++

can anybody please help me with tha hashing concept in c++?? i need a program that would enable password security…as in the entered password gets converted into some other form so that unauthorised access can be prevented??..

There is a one way hash SHA. The wikipedia page has pseudocode implementation, which you can implement in C++. Or it would be better if you search for some library like OpenSSL for doing it.

For extra security, don’t forget to use salt.