Thursday, March 29, 2007

CTNHashProc

CTNHashProc
CTNHashProc is a MS SQLServer 2000 Extended Stored Procedure that returns the hash of a given string. Hash is returned on hexadecimal.
Currently the supported hash functions are linked from Crypto++ and are the following:
@type HASH
---------------------------------
1 SHA
2 SHA2 (SHA-256)
3 SHA2 (SHA-384)
4 SHA2 (SHA-512)
11 MD5
20 RIPEMD-160
25 Tiger

Any other hash function supported by the library Crypto++ Version 5.1 may be added easy to CTNHashProc. An unsupported hash function can also be added but you need a C++ implementation of the function or a library that supports it.