Global Functions
The Privileged Access Service provides global functions available in a user session for a user-password application.
Function Name | Description |
---|---|
encode(*stringvalue*)
|
This function takes a string as its argument and returns an HTML-safe version of the string for transmission via HTML. It converts each non-HTML-safe character into a string that the receiver will interpret as the original character. |
Hash(*stringvalue*, *hashalgorithm*, “x2”)
|
This function takes a string and hash algorithm as arguments and returns a hash in the specified algorithm. Supported algorithms are: SHA-1 SHA-256 MD5 For example: var hashedValue = Hash("raw_string", "sha256", "x2"); |