Class Base64SecretStore
java.lang.Object
com.atlassian.secrets.store.base64.Base64SecretStore
- All Implemented Interfaces:
SecretStore
Basic and default implementation of Cipher. Uses
Base64 to obfuscate data.
Warning! Data obfuscated using this cipher are not secure. If attacker knows the obfuscated password they can decrypt it easily. When using this cipher consider limiting access to the configuration file to increase security level.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Base64SecretStore
public Base64SecretStore()
-
-
Method Details
-
store
Encodes plainTextData usingBase64- Specified by:
storein interfaceSecretStore- Parameters:
plainTextData- data in plain text which should be encrypted- Returns:
- data encoded using
Base64
-
get
Decodes encryptedData usingBase64- Specified by:
getin interfaceSecretStore- Parameters:
encryptedData- data which has been encrypted by usingstore(String)- Returns:
- plain text data
-