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
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to