aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tests/cryptpass.cpp18
-rw-r--r--src/tests/md5.cpp2
2 files changed, 19 insertions, 1 deletions
diff --git a/src/tests/cryptpass.cpp b/src/tests/cryptpass.cpp
new file mode 100644
index 0000000..4b090fe
--- /dev/null
+++ b/src/tests/cryptpass.cpp
@@ -0,0 +1,18 @@
1#include "bu/crypt.h"
2#include "bu/sio.h"
3
4using namespace Bu;
5
6int main( int argc, char *argv[] )
7{
8 if( argc == 1 )
9 sio << "Syntax: " << argv[0] << " <password> [salt]" << sio.nl
10 << sio.nl;
11 else if( argc == 2 )
12 sio << "Crypt1: >> " << cryptPass( argv[1] ) << " <<" << sio.nl;
13 else
14 sio << "Crypt2: >> " << cryptPass( argv[1], argv[2] ) << " <<" << sio.nl;
15
16 return 0;
17}
18
diff --git a/src/tests/md5.cpp b/src/tests/md5.cpp
index 3b3d5e7..69ddd1d 100644
--- a/src/tests/md5.cpp
+++ b/src/tests/md5.cpp
@@ -28,7 +28,7 @@ int main( int argc, char *argv[] )
28 break; 28 break;
29 } 29 }
30 30
31 sio << m.getResult() << " *" << *argv << sio.nl; 31 sio << m.getHexResult() << " *" << *argv << sio.nl;
32 } 32 }
33} 33}
34 34