First of all, I say sry to Kenneth personally as he answers the mail to my personal address and everytime I hit reply I didn't realize that I was sending mails to him. Sry Kennet...
In what topic concern I was replying that with a little of work I understand how sha-1 format is with the 4bit hexadecimal number. This was the mail that I thought I sent it here: Well, Nothing better than trying myself out and understanding it, thanks to you guys, obviosly: I wrote this to know better the sha-1 format: #include <openssl/sha.h> int main(int argc, char *argv[]) { int i = 0; int j = 0; unsigned char *output = (unsigned char *) malloc(sizeof(char) * SHA_DIGEST_LENGTH); for (i = 0; argv[1][i] != '\0'); SHA1(argv[1], i, output); for(i=0; i < 20; i++) { printf("%d: ",i); for(j = 7; j >= 0; j--) printf("%d", (output[i]>>j) & 1); printf("\n"); } } The first issue was finding out why: echo "seba" | sha1sum didn't match. I realized that i was forgetting the -n =) Then I could check correctly the outputs: echo -n "seba" | sha1sum 5548b9e1beea83fb5d0f2bc81cd5933e8289beab - whit: ./sha1 seba 0: 01010101 1: 01001000 2: 10111001 3: 11100001 4: 10111110 5: 11101010 6: 10000011 7: 11111011 8: 01011101 9: 00001111 10: 00101011 11: 11001000 12: 00011100 13: 11010101 14: 10010011 15: 00111110 16: 10000010 17: 10001001 18: 10111110 19: 10101011 Thanks again guys ;-) Regards, -- If you want freedom, compile the source. Get gentoo. Sebastián Treu http://labombiya.com.ar ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org