Class SymmetricCrypt


  • public class SymmetricCrypt
    extends java.lang.Object
    Deprecated.
    since 5.6 Please use granite crypto-support service instead (com.adobe.granite.crypto.CryptoSupport)
    SymmetricCrypt provides a symmetric encryption/decryption for storing password in the repository. the encrypted passwords are only thought for "security by obscurity" for example to hide plain text replication password, but everyone that has access to this class can decrypt them.
    Since:
    5.3
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PREFIX
      Deprecated.
      encryption prefix
    • Constructor Summary

      Constructors 
      Constructor Description
      SymmetricCrypt()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String decrypt​(java.lang.String s)
      Deprecated.
      Decrypts a string that was previously encrypt(String) encrypted}.
      static java.lang.String encrypt​(java.lang.String s)
      Deprecated.
      Encrypts the given string in a fairly secure way so that it can be decrypted again.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PREFIX

        public static final java.lang.String PREFIX
        Deprecated.
        encryption prefix
        See Also:
        Constant Field Values
    • Constructor Detail

      • SymmetricCrypt

        public SymmetricCrypt()
        Deprecated.
    • Method Detail

      • encrypt

        public static java.lang.String encrypt​(java.lang.String s)
        Deprecated.
        Encrypts the given string in a fairly secure way so that it can be decrypted again.
        Parameters:
        s - string to encrypt
        Returns:
        the encrypted string with a "{AES}" prefix.
      • decrypt

        public static java.lang.String decrypt​(java.lang.String s)
        Deprecated.
        Decrypts a string that was previously encrypt(String) encrypted}.
        Parameters:
        s - the data to decrypt
        Returns:
        the string or null if an internal error occurred