Class OAESEncryption
java.lang.Object
com.orientechnologies.orient.core.encryption.impl.OAbstractEncryption
com.orientechnologies.orient.core.encryption.impl.OAESEncryption
- All Implemented Interfaces:
OEncryption
* Stateful compression implementation that encrypt the content using AES
(https://docs.oracle.com/javase/7/docs/technotes/guides/security/SunProviders.html). Issue
https://github.com/orientechnologies/orientdb/issues/89.
- Author:
- giastfader, Luca Garulli (l.garulli--(at)--orientdb.com) This implementation uses AES in ECB mode and is thus not secure. See https://github.com/orientechnologies/orientdb/issues/8207.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]encryptOrDecrypt(int mode, byte[] input, int offset, int length) *name()Methods inherited from class com.orientechnologies.orient.core.encryption.impl.OAbstractEncryption
decrypt, decrypt, encrypt, encrypt
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
OAESEncryption
public OAESEncryption()
-
-
Method Details
-
name
-
configure
-
encryptOrDecrypt
Description copied from class:OAbstractEncryption*- Specified by:
encryptOrDecryptin classOAbstractEncryption- Parameters:
mode- it can be Cipher.ENCRYPT_MODE or Cipher.DECRYPT_MODE- Returns:
- Throws:
Exception
-