This is part of GeneXus Cryptography Module. and allows to create differents kind of key, for symmetric Encryption.
Values:
GENERICRANDOM
SymmetricKeyGenerator.DoGenerateHashBasedKey(hashAlgorithm , plainText)
- Input hashAlgorithm: HashAlgorithm Domain value
- Input plainText: LongVarChar(2M) plaint text
- Returns: VarChar(256) hexadecimal
Generates a fixed-length key based on the plain text digest.
It uses UTF-8 by default unless CryptographyEncodingUtil is used.
SymmetricKeyGenerator.DoGenerateKey(symmetricKeyType, length)
- Input symmetricKeyType: SymmetricKeyType Domain value
- Input length: Numeric(9.0) bits
- Returns: VarChar(256) hexadecimal
Generates a fixed-length key with the given type of generator indicated on symmetricKeyType.
SymmetricKeyGenerator.DoGenerateIV(symmetricKeyType, length)
- Input symmetricKeyType: SymmetricKeyType Domain value
- Input length: Numeric(9.0) bits
- Returns: VarChar(256) hexadecimal
Generates a fixed-length IV with a Secure Random Algorithm for the given length expressed in bits.
SymmetricKeyGenerator.DoGenerateNonce(symmetricKeyType, length)
- Input symmetricKeyType: SymmetricKeyType Domain value
- Input length: Numeric(9.0) bits
- Returns: VarChar(256) hexadecimal
Generates a fixed-length nonce with a Secure Random Algorithm for the given length expressed in bits.