From: hackbard <hackbard>
Date: Sat, 22 Apr 2006 13:48:49 +0000 (+0000)
Subject: added string2hex prog (usefull for wep key)
X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=f9cefd74e6c6852e279f7f2c268ac16919c256e3;p=my-code%2Fbeginners.git

added string2hex prog (usefull for wep key)
---

diff --git a/string2hex.c b/string2hex.c
new file mode 100644
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;
+}