766
Views
8
Comments
Built-in functions
Question
Hi

just wondering if there is a SHA2/256 hash function built in? https://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
2018-03-08 20-43-12
Robert Chanphakeo
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.
SwiitchLibrary.xif
2018-03-08 20-43-12
Robert Chanphakeo
Updated to functions.
SwiitchLibrary.xif
2012-01-04 23-08-42
Gustavo Guerra
You can also check the Crypto extensions that comes in the Enterprise Manager solution

Best Regards,
Gustavo Guerra
2011-06-15 10-51-22
Joop Stringer
The Crypto extension does not compute a MD5 hash ... 
Here is a old-fashioned MD5 hash https://www.webdevbros.net/wp-content/uploads/2007/12/md5.zip

Anybody knows how to get a real MD5 hash ?
2018-03-08 20-43-12
Robert Chanphakeo
@Joop

See attachment.

It calculates real MD5.
Cryptography.xif
2011-06-15 10-51-22
Joop Stringer
wrote:
It calculates real MD5.
 
 Will try that one, thanks
2025-04-10 06-15-24
Jose Roberto Littaua
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!

-Bojo
2018-03-08 20-43-12
Robert Chanphakeo
Bojo

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!
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.