Official Content

This is part of GeneXus Cryptography Module. and allows to create differents kind of key, for symmetric Encryption.

SymmetricKeyType Domain

Values:

GENERICRANDOM

SymmetricKeyGenerator

DoGenerateHashBasedKey

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.

DoGenerateKey

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.

DoGenerateIV

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.

DoGenerateNonce

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.




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