projects
/
my-code
/
beginners.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added string2hex prog (usefull for wep key)
[my-code/beginners.git]
/
string2hex.c
1
#include <stdio.h>
2
#include <string.h>
3
int main(int argc,char **argv) {
4
5
int i;
6
int len=strlen(argv[1]);
7
8
for(i=0;i<len;i++) printf("%02x",argv[1][i]);
9
printf("\n");
10
11
return 1;
12
}