projects
/
my-code
/
beginners.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00b7011
)
added string2hex prog (usefull for wep key)
master
origin
author
hackbard
<hackbard>
Sat, 22 Apr 2006 13:48:49 +0000
(13:48 +0000)
committer
hackbard
<hackbard>
Sat, 22 Apr 2006 13:48:49 +0000
(13:48 +0000)
string2hex.c
[new file with mode: 0644]
patch
|
blob
diff --git a/string2hex.c
b/string2hex.c
new file mode 100644
(file)
index 0000000..
f5ef680
--- /dev/null
+++ b/
string2hex.c
@@ -0,0
+1,12
@@
+#include <stdio.h>
+#include <string.h>
+int main(int argc,char **argv) {
+
+ int i;
+ int len=strlen(argv[1]);
+
+ for(i=0;i<len;i++) printf("%02x",argv[1][i]);
+ printf("\n");
+
+ return 1;
+}