Closed regisd closed 9 years ago
Refactor MD5Hash with String.format and BigInt
Don't build the hexa string manually with a StringBuilder, but use String.format() instead. Remove static field, since MessageDigest already implements the Singleton pattern
StringBuilder
String.format()
MessageDigest
Add MD5HashTest
Test against current behaviour, including 0-padding.
Merging this, thank you, @regisd!
:+1:
Refactor MD5Hash with String.format and BigInt
Don't build the hexa string manually with a
StringBuilder
, but useString.format()
instead. Remove static field, sinceMessageDigest
already implements the Singleton patternAdd MD5HashTest
Test against current behaviour, including 0-padding.