Official Content

Encrypts a text using a key in hexadecimal format with a length of 32 characters.

Syntax

Encrypt64 (&text, &key)

Where:

&text
     Is the parameter to be encrypted.

&key
    Is the key to be used for the encryption, generated by the GetEncryptionKey function.

Type Returned:
Character      

Scope

Objects: Procedure, Transaction, Web Panel, Panel, Data Provider
Generators: .NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3), Apple, Android, Angular

Description

It encrypts the value received as the first parameter, using the key indicated as the second parameter. The encryption is based on the Twofish algorithm using a default key in hexadecimal format with a length of 32 characters.

Sample

Event 'Encrypt'
   &key=GetEncryptionKey()
   &text=Encrypt64("Password",&key)
Endevent

See Also

GetEncryptionKey function
Decrypt64 function
Cryptography data types


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant