Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/MD5/D/md5-1.d
Normal file
6
Task/MD5/D/md5-1.d
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
void main() {
|
||||
import std.stdio, std.digest.md;
|
||||
|
||||
auto txt = "The quick brown fox jumped over the lazy dog's back";
|
||||
writefln("%-(%02x%)", txt.md5Of);
|
||||
}
|
||||
9
Task/MD5/D/md5-2.d
Normal file
9
Task/MD5/D/md5-2.d
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import tango.io.digest.Md5, tango.io.Stdout;
|
||||
|
||||
void main(char[][] args) {
|
||||
auto md5 = new Md5();
|
||||
for(int i = 1; i < args.length; i++) {
|
||||
md5.update(args[i]);
|
||||
Stdout.formatln("[{}]=>\n[{}]", args[i], md5.hexDigest());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue