Built-in functions

Built-in functions


just wondering if there is a SHA2/256 hash function built in? http://en.wikipedia.org/wiki/SHA_hash_functions

also looking for functions to....
-Check text/string is alphanumerical
-Check text/string character is upper case or lower case
-Check text/string contain symbols
Solution attached -

-Computehash: Generates a hash for the given plain text value and returns a base64-encoded result.
(Hash algorithm: MD5, SHA1, SHA256, SHA384, SHA512)

-VerifyHash: Compares a hash of the specified plain text value to a given hash value.
If computed hash matches the specified hash the function the return value is true; otherwise, the function returns false.

-VerifyPassword: User specify to checks whether the password value contains digit, upper-case, lower-case, special characters, If password check specified is valid return value is true; otherwise, the function returns false.

-NewGUID: returns a Globally Unique Identifier.
Updated to functions.
You can also check the Crypto extensions that comes in the Enterprise Manager solution

Best Regards,
Gustavo Guerra
The Crypto extension does not compute a MD5 hash ... 
Here is a old-fashioned MD5 hash http://www.webdevbros.net/wp-content/uploads/2007/12/md5.zip

Anybody knows how to get a real MD5 hash ?

See attachment.

It calculates real MD5.
It calculates real MD5.
 Will try that one, thanks
Is there a way I can use the switchlibrary to convert string to a SHA512 without the saltbytes parameter? Whenever I try to convert something to SHA512 and compare to online converters, it just wouldn't give me the same result. Any help would be appreciated!


Have a look at the microsoft library "system.security.cryptography.sha512" https://msdn.microsoft.com/en-us/library/system.security.cryptography.sha512

This will do what you want!