IPWorks Encrypt 2020 JavaScript Edition

Questions / Feedback?

EncryptionAlgorithm Property

The encryption algorithm to use.

Syntax


 getEncryptionAlgorithm(): EccEncryptionAlgorithms;

 setEncryptionAlgorithm(encryptionAlgorithm: EccEncryptionAlgorithms): void;

enum EccEncryptionAlgorithms { iesAES, iesTripleDES, iesXOR }

Default Value

0

Remarks

This setting specifies the encryption algorithm to use when Encrypt is called. This must also be set before calling Decrypt to match the algorithm used during the initial encryption.

Possible values are:

  • 0 (iesAES - default)
  • 1 (iesTripleDES)
  • 2 (iesXOR)

AES Notes

When EncryptionAlgorithm is set to iesAES AES CBC with a default key size of 256 bits is used. To specify a different key size set EncryptionKeySize.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Encrypt 2020 JavaScript Edition - Version 20.0 [Build 8262]