Package org.apache.commons.vfs2.util
Class DefaultCryptor
- java.lang.Object
-
- org.apache.commons.vfs2.util.DefaultCryptor
-
- All Implemented Interfaces:
Cryptor
public class DefaultCryptor extends java.lang.Object implements Cryptor
Allows passwords to be encrypted and decrypted.Warning: This uses AES128 with a fixed encryption key. This is only an obfuscation no cryptographic secure protection.
- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description DefaultCryptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
decrypt(java.lang.String encryptedKey)
Decrypts the password.java.lang.String
encrypt(java.lang.String plainKey)
Encrypt the plain text password.
-
-
-
Constructor Detail
-
DefaultCryptor
public DefaultCryptor()
-
-
Method Detail
-
encrypt
public java.lang.String encrypt(java.lang.String plainKey) throws java.lang.Exception
Encrypt the plain text password.Warning: This uses AES128 with a fixed encryption key. This is only an obfuscation no cryptographic secure protection.
-
-