ENCRYPT

ENCRYPT (algorithmString , keyBytes , dataBytes)

Parameters

  • algorithmString - sets a supported AES algorithm.
  • keyBytes - sets a key.
  • dataBytes - sets data.

Description

Encrypt data using a key. The supported algorithm is AES. The block size is 16 bytes. This method returns bytes.

Example

Encrypt players name:

SELECT ENCRYPT('AES', '00', STRINGTOUTF8(Name)) FROM Player;