On Wednesday, December 24, 2014 2:28:26 AM UTC-6, Jeremy Ruston wrote:
>
> One option might be to use the built-in Stanford JavaScript Crypto Library 
> that we use for handling encrypted TiddlyWikis:
>
> http://bitwiseshiftleft.github.io/sjcl/
>
> It works in the browser and under Node.js. You can call it like this:
>
> var sjcl = $tw.node ? require("./sjcl.js") : window.sjcl;
>
> var myHash = sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(myMessage))
>

Thanks.

For my (very specific) purposes I needed MD5 because I needed a 128-bit 
value to turn into a pseudo-GUID. I ended up adapting some MD5 code I found 
with a very open license into my ATOM plugin as a library (and a macro that 
uses the library). And that process answered my more general question of 
how to use such resources in TW (by turning them into a library, for 
example).

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to