public interface Cryptor extends Encryptor, Decryptor, Destroyable
Encryptor and Decryptor. ("EncryptorAndDecryptor" was
considered a too long name for this interface.)
Additionally, this interface promises that the encryptor and decryptor are "right" for each other, i.e.
Arrays.equals(ba,cryptor.decrypt(cryptor.encrypt(ba)))
is true for any byte array ba and any cryptor instance.
destroy, isDestroyedCopyright © 2018 Arno Unkrig. All rights reserved.