EncryptText - method of object Pm
The encryption of the string by the seed.
EncryptText(sText As String, sSeed As String) As String
s = Pm.EncryptText(sText, 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:
VBScriptSelect and copy to clipboard
Dim sTxt, sTextCode
sTxt = "Secret text"
sTextCode = Pm.EncryptText(sTxt, "bflmpsvz")
Pm.IniFileWrite "data.ini", "Password1", sTextCode