A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
5
Task/MD5/Groovy/md5-1.groovy
Normal file
5
Task/MD5/Groovy/md5-1.groovy
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import java.security.MessageDigest
|
||||
|
||||
String.metaClass.md5Checksum = {
|
||||
MessageDigest.getInstance('md5').digest(delegate.bytes).collect { String.format("%02x", it) }.join('')
|
||||
}
|
||||
1
Task/MD5/Groovy/md5-2.groovy
Normal file
1
Task/MD5/Groovy/md5-2.groovy
Normal file
|
|
@ -0,0 +1 @@
|
|||
assert 'The quick brown fox jumps over the lazy dog'.md5Checksum() == '9e107d9d372bb6826bd81d3542a419d6'
|
||||
Loading…
Add table
Add a link
Reference in a new issue