Class Base64SecretStore

java.lang.Object
com.atlassian.secrets.store.base64.Base64SecretStore
All Implemented Interfaces:
SecretStore

public class Base64SecretStore extends Object implements 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 Details

    • Base64SecretStore

      public Base64SecretStore()
  • Method Details

    • store

      public String store(String plainTextData)
      Encodes plainTextData using Base64
      Specified by:
      store in interface SecretStore
      Parameters:
      plainTextData - data in plain text which should be encrypted
      Returns:
      data encoded using Base64
    • get

      public String get(String encryptedData)
      Decodes encryptedData using Base64
      Specified by:
      get in interface SecretStore
      Parameters:
      encryptedData - data which has been encrypted by using store(String)
      Returns:
      plain text data