Hey, it's not clear from your question what you're asking.
The snippet is actually an HTML snippet, so I'd expect that pasting it into an HTML file an opening in a browser does what you expect it to do? It doesn't look, however, related to V8 development. Please reach out to the authors / maintainers of the crypto library for how to use it. best -jochen On Wed, Apr 20, 2016 at 6:52 AM <muhammad.ow...@gmail.com> wrote: > I need to execute following script which uses crypto-js library in V8. How > should I write my js file. > > <script type="text/javascript" src=" > http://cryptojs.altervista.org/api/functions_cryptography.js"></script> > <script type="text/javascript"> > > var Crypt = new Crypt(); // constructor > > /*** encrypt */ > var ciphertext = Crypt.AES.encrypt("plaintext", "Secret Passphrase"); > // H3fAh9bppeg=xuHy8woEtOfYYI18tLM76A==BKUvKCztSNl8 > > /*** decrypt */ > var plaintext = Crypt.AES.decrypt(ciphertext, "Secret Passphrase"); > > </script> > > -- > -- > v8-dev mailing list > v8-dev@googlegroups.com > http://groups.google.com/group/v8-dev > --- > You received this message because you are subscribed to the Google Groups > "v8-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to v8-dev+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.