Open Source Institute | CyberArmy Intelligence & Security | CyberArmy Services & Projects

RE: short note about it


[Replies] [Reply] [View by Thread] [Help]
[Back To SNEAK Development Forum]

Posted by Tr flamebalrog On 2005-03-16 23:20:17
In Reply to short note about it Posted by Maj anvar On 2005-03-15 18:27:03

Tr
Tr flamebalrog


On 2005-03-15 18:27:03, anvar wrote
>
>it isn't 100% working yet, for some reason the output is 16 char rather then 32, I'll be looking into it more, if any-one has suggestions, feel free to post :)

The digest() method returns an array of bytes.

The String(byte[]) constructor makes a string by decoding the bytes array (using the platform's default charset...so this will not give the same results everywhere).

I guess what you want isn't to decode the array, but rather convert it to an hex. representation of its bytes...

Does it help ?


- Is it a feature or a bug ? -


Replies:


Guest:
Subject:
Message:
Signature:
Optional Image Link:
http://

CyberArmy::Forum v0.6
Generated In 0.02312 seconds


About Us | Privacy Policy | Mission Statement | Help