Class EncryptionHelper

java.lang.Object
ai.mindconnect.common.util.encryption.EncryptionHelper

public class EncryptionHelper extends Object
  • Field Details

  • Constructor Details

    • EncryptionHelper

      public EncryptionHelper()
  • Method Details

    • noEncryption

      public static EncryptionHelper noEncryption()
      Returns an instance that resolves plain: prefixes but cannot decrypt enc: values.
    • resolve

      public String resolve(String value)
      Returns the plaintext value. Accepts plain:…, enc:…, or bare plaintext (no prefix) for backwards compatibility with configs saved before encryption was introduced.
    • getUnencryptedPassword

      public String getUnencryptedPassword(String password)
    • encrypt

      public String encrypt(String input) throws Exception
      Throws:
      Exception
    • decrypt

      public String decrypt(String input) throws Exception
      Throws:
      Exception