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:

Result:

Possible exceptions


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:

Result:

  • output :: pdk.core.Boolean - true if the clean string, after encoding, matches the encoded string.

Possible exceptions

Last updated