Class Md5Hash

  • All Implemented Interfaces:
    Serializable, Hash, org.apache.shiro.util.ByteSource

    public class Md5Hash
    extends SimpleHash
    Generates an MD5 Hash (RFC 1321) from a given input source with an optional salt and hash iterations.

    See the SimpleHash parent class JavaDoc for a detailed explanation of Hashing techniques and how the overloaded constructors function.

    Since:
    0.9
    See Also:
    Serialized Form
    • Constructor Detail

      • Md5Hash

        public Md5Hash()
      • Md5Hash

        public Md5Hash​(Object source)
      • Md5Hash

        public Md5Hash​(Object source,
                       Object salt,
                       int hashIterations)
    • Method Detail

      • fromHexString

        public static Md5Hash fromHexString​(String hex)
      • fromBase64String

        public static Md5Hash fromBase64String​(String base64)