Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Robert Chanphakeo
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
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
Robert Chanphakeo
Updated to functions.
SwiitchLibrary.xif
Gustavo Guerra
You can also check the Crypto extensions that comes in the
Enterprise Manager
solution
Best Regards,
Gustavo Guerra
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 ?
Robert Chanphakeo
@Joop
See attachment.
It calculates real MD5.
Cryptography.xif
1 reply
17 Jan 2013
Show thread
Hide thread
Joop Stringer
wrote
:
It calculates real MD5.
Will try that one, thanks
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
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 Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
 Loading...