Module Digest:SHA
am 12.06.2006 14:00:21 von Guenther Sohler
Hallo,
I was very happy beeing able to get Digest:SHA working in perl.
Its in a quite good condition and eg sha256_hex works perfectly.
Now I have the problem, that for my special application
I need something like sha64_hex(at least I think so), but Its not
implemented yet. I have this script available in java, but i need it in
perl. Is it possible to derive it from sha256_hex somehow ?
rds
Re: Module Digest:SHA
am 13.06.2006 02:03:21 von Sisyphus
"Guenther Sohler" wrote in message
news:pan.2006.06.12.12.00.21.370097@wipro.com...
> Hallo,
>
> I was very happy beeing able to get Digest:SHA working in perl.
> Its in a quite good condition and eg sha256_hex works perfectly.
> Now I have the problem, that for my special application
> I need something like sha64_hex(at least I think so), but Its not
> implemented yet. I have this script available in java, but i need it in
> perl. Is it possible to derive it from sha256_hex somehow ?
>
I don't know of any "sha64". My expectation is that "sha64_hex" would output
16 hex digits. Is that what you're after ?
I assumed, initially, that you meant "sha256_hex" (since that outputs 64 hex
digits), but I see that you're already aware of that function - so
presumably it's not what you want.
What length is the hex string produced by the java program ?
Cheers,
Rob
Re: Module Digest:SHA
am 13.06.2006 07:22:35 von Guenther Sohler
Dear Sisiphus,
thank you for your reply!
I think, my java code creates 16 digits of code. At least it looks like.
If you mail me at guenther.sohler@gmx.at, I can reply you with the java
code attached. Then you could also judge, if the used algorithm
perfctly fits SHA. rds