EncryptText - method of the Pm object
The encryption of the string by the seed.
String EncryptText(String sText, String sSeed)
|sText||(String) Text that has to be encrypted|
|sSeed||(String) Seed by which the text has to be encrypted (it is necessary for the text decryption). It is recommended to use 5 characters at least.|
The encryption of the password and writing it to "ini" file:
var sTxt = "Secret text";
var sTextCode = Pm.EncryptText(sTxt, "bflmpsvz");
Pm.IniFileWrite("#cfg:data.ini", "Passwords", "Password1", sTextCode);
String encryption and decryption according to specific seed.
var sTxt = "Hello";
var sTextEncrypt = Pm.EncryptText(sTxt, "bflmpsvz");
Pm.Debug("TextEncrypt = " + sTextEncrypt);
sTextDecrypt = Pm.DecryptText(sTextEncrypt, "bflmpsvz");
Pm.Debug("TextDecrypt = " + sTextDecrypt);
: An error occured if the input text was empty string.