JavaScrypt Encryption and Decryption


Key


   

Plain Text


   

Maximum line length: 

Presets
Hide encrypted text
Show encrypted text
Custom
End of line characters
None
HTML line break
Newline character

Display as a single line

Cipher Text


   

 


Code to do in-browser decryption


Hide the encrypted text and only show the decryption link

<a href="javascript:Decrypt_text('unique_name', 'The cipher text');">Show encrypted text</a>

<div id="unique_name"></div>

 

Show the encrypted text on the page along with a link to decrypt it

<a href="javascript:Decrypt_text('unique_name');">Decrypt text</a>

<div id="unique_name">The cipher text</div>


by John Walker December, 2005
modified by Vincent Cheung July, 2006

This document is in the public domain.