Hi,

There are many online samples which you can refer to, like:

http://www.obviex.com/samples/hash.aspx

http://cs.thycotic.net/blogs/shiva_adhikari/archive/2006/09/09/SHA1_2C00_-MD5_2C00_-SHA256-and-some-C_2300_-code-snippet.aspx


Hope this helps,

brajesh kumar