diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2006-05-01 17:11:04 +0000 | 
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2006-05-01 17:11:04 +0000 | 
| commit | f7a9549bd6ad83f2e0bceec9cddacfa5e3f84a54 (patch) | |
| tree | 53cec4864776e07950e3c72f2a990a1017d08045 /src/test/md5test | |
| download | libbu++-f7a9549bd6ad83f2e0bceec9cddacfa5e3f84a54.tar.gz libbu++-f7a9549bd6ad83f2e0bceec9cddacfa5e3f84a54.tar.bz2 libbu++-f7a9549bd6ad83f2e0bceec9cddacfa5e3f84a54.tar.xz libbu++-f7a9549bd6ad83f2e0bceec9cddacfa5e3f84a54.zip  | |
libbu++ is finally laid out the way it should be, trunk, branches, and tags.
Diffstat (limited to '')
| -rw-r--r-- | src/test/md5test.cpp | 19 | 
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/md5test.cpp b/src/test/md5test.cpp new file mode 100644 index 0000000..6f832df --- /dev/null +++ b/src/test/md5test.cpp  | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #include <stdio.h> | ||
| 2 | #include <string.h> | ||
| 3 | #include "md5.h" | ||
| 4 | |||
| 5 | int main() | ||
| 6 | { | ||
| 7 | md5 mproc; | ||
| 8 | md5sum sum; | ||
| 9 | char hexstr[33]; | ||
| 10 | |||
| 11 | memset( hexstr, 0, 33 ); | ||
| 12 | |||
| 13 | mproc.sumString( &sum, "qwertyuiopasdfgh" ); | ||
| 14 | mproc.sumToHex( &sum, hexstr ); | ||
| 15 | printf("sum: %s\n", hexstr ); | ||
| 16 | printf("chk: 1ebfc043d8880b758b13ddc8aa1638ef\n"); | ||
| 17 | |||
| 18 | return 0; | ||
| 19 | } | ||
