AESDecoder()

Syntax

Result$ = AESDecoder(*Input, *Output, Size, *Key, Bits, *InitializationVector [, Mode])
Description
Decodes the specified '*Input' buffer using the AES algorithm into the '*Output' buffer. 'Bits' specify the size of the key used by the ciphering. Valid values are 128, 192 and 256. The 'InitializationVector' is a random data block, used to initialize the ciphering to avoid breach in decoding (only needed when using the #PB_Cipher_CBC mode). Its size depends of the 'Bits' parameter: l6 bytes for 128 bit encryption, 24 bytes for 196 bit and 32 bytes for 256 bit.

The optional 'Mode' parameter can be one of the following value:
  #PB_Cipher_CBC: Default mode of encoding (Cipher Block Chaining). Needs an '*InitializationVector'.
                  Recommended as more secure than ECB mode.
  #PB_Cipher_ECB: Alternative mode (Electronic CodeBook). It doesn't uses random value nor chaining 
                  (each block is ciphered independently) making it less strong the CBC.
For more information about AES and source examples, see AESEncoder().

Supported OS

All

Cipher Index - AESEncoder() ->