... is easy when the name of the vocabulary is reasonable enough.
I needed a way to emit a hexdigest from a SHA256 checksum. About
5 minutes on the Python site. The same time for Factor.
An embarrassing long time (I don't tell!) for C#, with writing
the hexdigest code myself at the end ...
Python:
import hashlib
print hashlib.sha256("Weltschmerz").hexdigest()
Factor:
USE: crypto.sha2
"Weltschmerz" byte-array>sha-256-string .
C#:
Some ugly code which had to convert the string to byte[],
computing the hash code by calling a method of an object,
receiving a byte[] (that's .NET's OO?), collecting the string
representation in hex for every byte, output.
--
Web (en): http://www.no-spoon.de/ -*- Web (de): http://www.frell.de/
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk