-
Constructor Summary
Constructors
-
Method Summary
byte[]
Decrypts the given byte array.
byte[]
Encrypts the given byte array.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EncryptorImpl
public EncryptorImpl(boolean defaultKey)
-
Method Details
-
decrypt
public byte[] decrypt(byte[] bytes)
Decrypts the given byte array.
- Specified by:
decrypt
in interface Encryptor
- Parameters:
bytes
- The encrypted bytes
- Returns:
- The decrypted bytes
-
encrypt
public byte[] encrypt(byte[] bytes)
Encrypts the given byte array.
- Specified by:
encrypt
in interface Encryptor
- Parameters:
bytes
- The clear bytes
- Returns:
- The ecnrypted bytes