Neolane - JavaScript API - v6.1.0

Unknown
cryptString
Encrypts a string of characters with the key of the instance or any other key.
cryptString ( str [, key ] [, useSalt ])
Parameters
str
The character string to encrypt.
key
The AES encryption key is encoded in base 64.
useSalt
Use a salt of the data to encrypt. True by default.
Return value
Returns the encrypted character string
Remarks
Encryption takes place according to the following method:
  • The unicode character string is transformed into a UTF-8 string.
  • A check character is added at the end.
  • This string is encrypted using the AES algorythm in Cipher Block Chaining (CBC) mode with a null initialization vector. If no key is provided as a parameter, the instance key is used.
  • The encrypted block is then converted into base 64.

Decryption uses the decryptString function.

Features
Available in:
  • Content management
  • Delivery properties
  • Delivery message
  • Typology rule
  • Import
  • JSSP
  • SOAP Method
  • WebApp
  • Workflow

Table of contents

previous page start next page