Class AsymmetricManager


  • public class AsymmetricManager
    extends java.lang.Object
    Utility class used for asymmetric encryption.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getHash​(java.lang.String unsecureText, java.lang.String salt)
      Generates a hash using asymmetric encryption.
      static java.lang.String getSalt()
      Generates a random salt.
      • Methods inherited from class java.lang.Object

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

      • getHash

        public static java.lang.String getHash​(java.lang.String unsecureText,
                                               java.lang.String salt)
        Generates a hash using asymmetric encryption.
        Parameters:
        unsecureText - The text to be hashed.
        salt - The salt used to defend against dictionary and rainbow table attacks.
        Returns:
        The hash.
      • getSalt

        public static java.lang.String getSalt()
        Generates a random salt.
        Returns:
        The salt.