[Encrypt seed=abcd]Any Text[/Encrypt]
To convert text from plain to encrypted, put it inside an [Encrypt] 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):
Try It!
In the example above, the first line of displayed text will be unintelligible, as seen below. The second line decrypts the text and displays it as it was before:
;)(*&#$KLJFLKjkhegdlksdfg09814 Some Text that is private
Use [Decrypt] to decode 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 store passwords in a database (such as WebCatalog's
own Users.db), so that in the unlikely event that someone is able to download the
file, the passwords will be unreadable.
You may optionally choose different special-purpose encryption methods as described in the following table:
| Parameter | Description |
|---|---|
|
method |
(Optional) Either "CyberCash" or "Base64". If not specified, then standard WebCatalog encryption is assumed. CyberCash is the triple-DES encryption used to communicate with the CyberCash CashRegister servers. Base64 is the encoding (not safe for encryption) that standard HTML browsers use for Basic Authentication. Do not attempt to encrypt more than 48 bytes using method=Base64. |
|
seed |
(Required, except for Base64) Key used to encrypt the text. For CyberCash, this should be the MerchantKey you were assigned when you created a CyberCash merchant account. For standard WebCatalog encryption, this is your secret key for decryption later. CyberCash encryption is one-way; it cannot be decrypted by your server. |