Ofcourse :) Thanks alot for your help and time !!
Grtz > Hello, >> SHA1((const unsigned char*)word,strlen(word), hashcode); >> result = strcpy(result,hashcode); >> >> printf("%i byte code generated\n> Result is now %i bytes >> long\n",strlen(hashcode),strlen(result)); >> >> while(sha1_count>1) >> { >> SHA1((const unsigned char*)hashcode,strlen(hashcode), hashcode); >> strcat(result,hashcode); >> printf("%i byte code generated\n> Result is now %i bytes >> long\n",strlen(hashcode),strlen(result)); >> sha1_count--; >> } > SHA1 message digest should be treated like binary data, not > strings with '\0' character at the end. > You should use memcpy() instead of strcpy() because SHA1 > may contain '\0' character inside. > > Best regards, > -- > Marek Marcola <[EMAIL PROTECTED]> > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager [EMAIL PROTECTED] > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]