====== WAEncrypt ====== Returns a source string encoded with specified key. ===== Syntax ===== function WAEncrypt(aText: string; aKey: string): string; ==== Parameters ==== * **//aText//** * //type:// string * //functions:// source string * **//aKey//** * //type:// string * //functions:// encryption key ==== Returned value ==== * //type:// string * //functions:// encoded string ===== Notes ===== * Encription based on [[http://en.wikipedia.org/wiki/Advanced_Encryption_Standard|Rijndael]] * PHP implementation of the method can be found with [[en:wascript:adjuvant:php:waencrypt|link]] ===== Examples ===== -var enc := WAEncrypt('source text', 'pass'); //enc = '561O6/EJRDYXWZoN|f+xhfzFP6mOO1DpcrWHWNg=='