Package ru.bgcrm.util.crypto
Class AesEncryptor
java.lang.Object
ru.bgcrm.util.crypto.AesEncryptor
- All Implemented Interfaces:
ru.bgcrm.util.crypto.Encryptor
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AesEncryptor
public AesEncryptor(byte[] key) - Parameters:
key- 16 bytes only
-
-
Method Details
-
encrypt
- Specified by:
encryptin interfaceru.bgcrm.util.crypto.Encryptor- Throws:
BGException
-
decrypt
@NotNull public @NotNull String decrypt(@NotNull @NotNull String vectorAndPassword) throws BGException - Specified by:
decryptin interfaceru.bgcrm.util.crypto.Encryptor- Throws:
BGException
-