IPWorks Encrypt 2020 PHP Edition

Questions / Feedback?

IV Property

The initialization vector (IV) used when encrypting.

Object Oriented Interface

public function getIV();
public function setIV($value);

Procedural Interface

ipworksencrypt_ecc_get($res, 10 );
ipworksencrypt_ecc_set($res, 10, $value );

Default Value

''

Remarks

This property optionally specifies an IV to be used when calling Encrypt or Decrypt. If specified the IV is used by EncryptionAlgorithm during encryption.

If not specified the class will create an IV filled with null bytes (zeros). Since the encryption key is only used once the use of null bytes in the IV is considered acceptable and is a standard practice.

The length of the IV should be as follows:

EncryptionAlgorithmIV Length (in bytes)
AES16
3DES8

This setting is not applicable when EncryptionAlgorithm is set to XOR.

Data Type

Binary String

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