Class DesEncrypter


  • public final class DesEncrypter
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String decrypt​(java.lang.String str)
      Deprecated.
      Deprecated, because it is neither throwing an Exception nor returning NULL if it couldn't be decrypted.
      static java.lang.String encrypt​(java.lang.String str)
      Encrypt a key.
      static java.lang.String tryDecrypt​(java.lang.String str)
      Returns the Decrypted Parameter, if encryption can be done.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • encrypt

        public static java.lang.String encrypt​(java.lang.String str)
        Encrypt a key.
        Parameters:
        str - Key
        Returns:
        Encrypted key
      • decrypt

        @Deprecated
        public static java.lang.String decrypt​(java.lang.String str)
        Deprecated.
        Deprecated, because it is neither throwing an Exception nor returning NULL if it couldn't be decrypted. Please use tryDecrypt.
        Decrypt a key.
        Parameters:
        str - Key
        Returns:
        Decrypted key
      • tryDecrypt

        public static java.lang.String tryDecrypt​(java.lang.String str)
        Returns the Decrypted Parameter, if encryption can be done. If not, the Input Parameter is returned.
        Parameters:
        str - Encrypted String
        Returns:
        if Decryption can be done, the String wil be returned. if not, the Input Parameter will be returned.