Hi Danielo You'd normally use $tw.crypto.encrypt(text) to encrypt text using the password that is latched into the password "vault" (that's the password set in the sidebar "tools" tab).
If you're not using the vault (which can only hold a single password), then you may be better off just calling the SJCL crypto functions directly. What are you trying to achieve? Best wishes Jeremy On Thu, Apr 3, 2014 at 4:37 PM, Danielo Rodríguez <[email protected]>wrote: > Ok... > > I tried with another path.... > Create a new crypto object > > var Ct=new $tw.utils.Crypto > > And use that object. After that everything works. I need to investigate > further :P > > > El jueves, 3 de abril de 2014 17:31:48 UTC+2, Danielo Rodríguez escribió: > >> Hello, >> >> I'm investigating the Crypto module of TW5 and I'm getting loss. >> How does the flow exactly works? >> >> I tried with very simple things as >> >> vr Ctext=$tw.utils.encrypt("My text","pass") >> $tw.utils.decrypt(Ctext,"pass") >> >> But I get all kind of errors. I tried JSON decoding/encoding the resulted >> object with no luck. >> I looked into gitHub and I saw some kind of store of encrypted tiddlers. >> How can I add tiddlers to that store? >> >> Thanks in advance. >> >> -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" 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/tiddlywikidev. > For more options, visit https://groups.google.com/d/optout. > -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" 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/tiddlywikidev. For more options, visit https://groups.google.com/d/optout.
