projects
/
my-code
/
beginners.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added string2hex prog (usefull for wep key)
[my-code/beginners.git]
/
string2hex.c
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;
+}