On Thu, Oct 19, 2006 at 12:14:55PM +0530, Kaushalye Kapuruge wrote:
> Hi,
> I tried to get the base64 encoded result of a SHA1 digest. But the 
> result is not compatible with the same operation in Java. Also I tried 
> to use a javascript function. It is matching with the result of the Java 
> implementation but not with the openssl result. So I guess there is 
> something wrong with openssl implementation.
> Here I'll write my approaches.
> 
> (A) Openssl
> ------------------------------------
> echo "abcde" | openssl dgst -sha1 -binary | openssl base64
 echo -n "abcde" | openssl dgst -sha1 -binary | openssl base64

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to