Creates hashes from input data.
Parameters:
Type | Name | Description |
---|---|---|
string | input | Data that will be hashed |
Function | function | Hash function type. This is enum type from the Hash class and acts as dropdown |
Output:
String: Hashed data
Example:
Generate("foobar", Hash.Function.MD5)
Function values:
Hash.Function.MD5 is mostly meant for the data validation.
Hash.Function.SHA512 can be used for passwords.