Package eu.webtoolkit.jwt.auth
Class MD5HashFunction
java.lang.Object
eu.webtoolkit.jwt.auth.HashFunction
eu.webtoolkit.jwt.auth.MD5HashFunction
A cryptograhpic hash function implemented using MD5.
This hash function is useful for creating token hashes, but
should not be used for password hashes.
-
Constructor Summary
-
Method Summary
Methods inherited from class eu.webtoolkit.jwt.auth.HashFunction
verify
-
Constructor Details
-
MD5HashFunction
public MD5HashFunction()
-
-
Method Details
-
compute
Description copied from class:HashFunction
Computes the hash of a message + salt.The message is usually an ASCII or UTF-8 string.
The
salt
and the computed hash are encoded in printable characters. This is usually ASCII-encoded or could be Base64-encoded.- Specified by:
compute
in classHashFunction
-
getName
Returns the name for this hash function. Returns "MD5".- Specified by:
getName
in classHashFunction
-