Icon EncryptStr

Unit: WebCore

Available In: Server Applications

function EncryptStr(const Value: String; const Password: String;
                    EncryptionType: TEncryptionType=etAES128): String;

The EncryptStr function encrypts a string using the specified encryption algorithm.

Information The TEncryptionType enumerated type is declared in the WebSrvr unit.

The return value is a hexadecimal String value containing the encrypted string.

Examples

X := DecryptStr('Hello World','Test Password',etAES256);  // X is 'A98649088318CB72B224B222FC10BC26'
Image