- java.lang.Object
-
- io.github.mmm.crypto.CryptoConfig
-
- io.github.mmm.crypto.algorithm.CryptoAlgorithmConfig
-
- io.github.mmm.crypto.hash.HashConfig
-
- io.github.mmm.crypto.hash.md5.Md5
-
- All Implemented Interfaces:
AbstractCryptoFactory,AbstractGetIterationCount,CryptoAlgorithm,HashFactory
public class Md5 extends HashConfig
HashConfigforMD5.
ATTENTION:
Please note that MD5 is a weak hash algorithm that shall not be used for secure hashing (e.g. for signing).- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringALGORITHM_MD5Thealgorithmname "MD5".static Md5MD5Md5using default provider.-
Fields inherited from class io.github.mmm.crypto.hash.HashConfig
ALGORITHM_NONE
-
Fields inherited from class io.github.mmm.crypto.algorithm.CryptoAlgorithmConfig
algorithm
-
Fields inherited from class io.github.mmm.crypto.CryptoConfig
provider
-
-
Constructor Summary
Constructors Constructor Description Md5(SecurityProvider provider, int iterationCount)The constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Md5of(int iterationCount)-
Methods inherited from class io.github.mmm.crypto.hash.HashConfig
decrementIterationCount, getIterationCount, newAccess, newHashCreator
-
Methods inherited from class io.github.mmm.crypto.algorithm.CryptoAlgorithmConfig
getAlgorithm
-
Methods inherited from class io.github.mmm.crypto.CryptoConfig
getProvider
-
-
-
-
Field Detail
-
ALGORITHM_MD5
public static final String ALGORITHM_MD5
Thealgorithmname "MD5".- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Md5
public Md5(SecurityProvider provider, int iterationCount)
The constructor.- Parameters:
provider- theSecurityProvider.iterationCount- theiteration count.
-
-
Method Detail
-
of
public static Md5 of(int iterationCount)
- Parameters:
iterationCount- theiteration count.- Returns:
- new instance with the given
iteration count.
-
-