Decrypts a string that has been encrypted using the Encrypt function.
kernel.bdh
Decrypt( in sEncyptedData : string, in sKey : string optional ): string;
decrypted string
Parameter | Description |
---|---|
sEncyptedData | Data to be decrypted |
sKey | String or binary data used as encryption key (optional). |
dcltrans transaction TMain var sUserPass : string; sEncrypted : string; begin // Build your own authentication header AttributeGetString("Password", sUserPass); sEncrypted := Encrypt(sUserPass); Print(sEncrypted); sUserPass := Decrypt(sEncrypted); Print("decrypted password: " + sUserPass); end TMain;