pdk.util.Crypto
functions to encrypt/decrypt data
Functions
encode
Encode the raw string. Generally, a good encoding algorithm applies a SHA-1 or greater hash combined with an 8-byte or greater randomly generated salt.
Arguments:
cleanString :: pdk.core.String
Result:
output :: pdk.core.String - encoded string
Possible exceptions
NullPointerException - throws if the cleanString argument is
NULL
match
Verify the encoded string matches the submitted clean string after it too is encoded. Returns true if the strings match, false if they do not. The encoded string itself is never decoded.
Arguments:
cleanString :: pdk.core.String
encodedString :: pdk.core.String - encoded by pdk.util.Crypto.encode function
Result:
output :: pdk.core.Boolean - true if the clean string, after encoding, matches the encoded string.
Possible exceptions
NullPointerException - throws if the cleanString or the encodedString argument is
NULL
Last updated