Riverwatcher Active Content Environment
Features
Download
Documentation
Forums
Support
FAQ
RACE Documentation:
DECODE - Decoding text that has been encrypted with RACE
TYPE
- Type of encryption used: Base64, blowfish or hex
KEY
- The key string used for the blowfish encryption
KEYID
- The keyid which refers to a key defined in the httpd.conf or .htaccess file using the RACESecretKey directive
Example - Simple decryption
Source:
<define var="$strcrypt"><encode type="hex"><$password></encode></define>
<define var="$strclean"><decode type="hex"><$strcrypt></decode></define>
Output:
This simply takes a string, runs it through the hex encoding scheme, and decodes it back.
Example - Base64 image decoding
Source:
<define var="$decoded_file"><decode type="base64"><$encoded_file></decode></define>
<output name="images/decoded_file.jpg"><$decoded_file></output>
File saved: <img src="images/decoded_file.jpg" />
Output:
File saved: <img src="images/decoded_file.jpg" />
note:
Given a Base64 encoded JPEG image, this will decode and save it to the server, and display the saved image.
RACE Documentation
Overview
introduction
installation
Tutorials
basic race programming
flow control
working with files and directories
database access
writing shell scripts
debugging RACE scripts
Tag Reference
asis
counter
database (sql)
database (ldap)
date
decode
define (variables)
define (tags)
define (cookies)
define (header)
encode
eval
exit
file
for
format
if
include
mail
output
redirect
system
translate
undefine (variables)
undefine (tags)
undefine (cookies)
while
Macros
scalars/tags
arrays
hashes
System Variables
<%attributes>
<%caller>
<%cookies>
<%database>
<%submission>
<%system>
Copyright © 2009
Riverwatcher, Inc.
Hosting by Riverwatcher Studios