public class NoOpIVGenerator extends Object implements IVGenerator
SNoOp implementation of IVGenerator, when you don't want to use an IV
for encryption. This is useful if you need to decrypt an old password that was
encrypted in an older version ofJasypt before there were IV's in JDK8.
This class is thread-safe.
| Constructor and Description |
|---|
NoOpIVGenerator() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
generateIV(int lengthBytes)
Return IV with the specified byte length.
|
boolean |
includePlainIVInEncryptionResults()
As this salt generator provides a fixed IV, its inclusion
unencrypted in encryption results
is not necessary, and in fact not desirable (so that it remains hidden).
|
public byte[] generateIV(int lengthBytes)
generateIV in interface IVGeneratorlengthBytes - length in bytes.public boolean includePlainIVInEncryptionResults()
includePlainIVInEncryptionResults in interface IVGeneratorCopyright © 2018 The JASYPT team. All rights reserved.