WAEncrypt

Returns a source string encoded with specified key.

Syntax

WAEncrypt = function(aText, aKey);

Parameters

  • aText
    • functions: source string
  • aKey
    • functions: encryption key

Returned value

  • functions: encoded string

Notes

  • Encription based on Rijndael
  • PHP implementation of the method can be found with link

Examples

  1. var enc = WAEncrypt('source text', 'pass');
    log(enc);
    //enc = '561O6/EJRDYXWZoN|f+xhfzFP6mOO1DpcrWHWNg=='