To convert text from encrypted to plain, put it inside a [Decrypt] context.
Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):
In the example above, pre-encrypted text is decrypted and displayed as it was before:
Some Text that is private
Use [Encrypt] to encode the text. To decrypt a sequence of text, you must set the seed value to exactly the same as when you encrypted it. The seed may be a sequence of up to 8 characters (anything you can type on the keyboard, except '&' or '=' or '[' or ']'). Do not ever let anyone know what the seed value is, because that would allow them to decrypt the text.
This context is most often used to retrieve passwords from a database (such as WebDNA's own Users.db), so that in the unlikely event that someone is able to download the file, the passwords will be unreadable.
Parameter | Description |
---|---|
method
|
(Optional) Either "CyberCash" or "Base64". If not specified, then standard WebDNA decryption is assumed. CyberCash is the triple-DES encryption used to communicate with the CyberCash Cash Register servers. Base64 is the encoding (not safe for encryption) that standard HTML browsers use for Basic Authentication. |
seed
|
(Required, except for Base64) Key used to decrypt the text. For CyberCash, this should be the MerchantKey you were assigned when you created a CyberCash merchant account. For standard WebDNA encryption, this is your secret key from encryption. CyberCash decryption only works with text sent from the CyberCash CashRegister server to you; it cannot be used to decrypt text that was encrypted by WebDNA itself. |