Package pywebfuzz :: Module encoderlib
[hide private]
[frames] | no frames]

Module encoderlib

This is the encoding / decoding functions collection for DharmaEncoder. It allows you to encode and decode various data formats.

(c) 2010 Nathan Hamiel Email: nathan{at}neohaxor{dot}org Hexsec Labs: http://hexsec.com/labs

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Functions [hide private]
 
url_encode(encvalue)
URL encode the specifed value.
 
full_url_encode(encvalue)
Full URL Hex encode the specified value.
 
base64_encode(encvalue)
Base64 encode the specified value.
 
hex_encode(encvalue)
Encode value to Hex.
 
hex_entity_encode(encvalue)
Encode value to a Hex entitiy.
 
unicode_encode(encvalue)
Unicode encode the specified value in the %u00 format.
 
escape_xml(encvalue)
Escape the specified HTML/XML value.
 
md5_hash(encvalue)
md5 hash the specified value.
 
sha1_hash(encvalue)
sha1 hash the specified value.
 
sqlchar_encode(encvalue)
SQL char encode the specified value.
 
oraclechr_encode(encvalue)
Oracle chr encode the specified value.
 
decimal_convert(encvalue)
Convert input to decimal value.
 
decimal_entity_encode(encvalue)
Convert input to a decimal entity.
 
rot13_encode(encvalue)
Perform ROT13 encoding on the specified value.
 
url_decode(decvalue)
URL Decode the specified value.
 
fullurl_decode(decvalue)
Full URL decode the specified value.
 
base64_decode(decvalue)
Base64 decode the specified value.
 
hex_decode(decvalue)
Hex decode the specified value.
 
hexentity_decode(decvalue)
Hex entity decode the specified value.
 
unescape_xml(decvalue)
Unescape the specified HTML or XML value: Hello&amp;World
 
unicode_decode(decvalue)
Unicode decode the specified value %u00 format.
 
rot13_decode(decvalue)
ROT13 decode the specified value.
Variables [hide private]
  __package__ = 'pywebfuzz'
Function Details [hide private]

url_encode(encvalue)

 

URL encode the specifed value. Example Format: Hello%20World

full_url_encode(encvalue)

 

Full URL Hex encode the specified value. Example Format: %48%65%6c%6c%6f%20%57%6f%72%6c%64

base64_encode(encvalue)

 

Base64 encode the specified value. Example Format: SGVsbG8gV29ybGQ=

hex_encode(encvalue)

 

Encode value to Hex. Example Format: 48656c6c6f2576f726c64

hex_entity_encode(encvalue)

 

Encode value to a Hex entitiy. Example Format: &#x48;&#x65;&#x6c;&#x6c;&#x6f;

unicode_encode(encvalue)

 

Unicode encode the specified value in the %u00 format. Example: %u0048%u0065%u006c%u006c%u006f%u0020%u0057%u006f%u0072%u006c%u0064

escape_xml(encvalue)

 

Escape the specified HTML/XML value. Example Format: Hello&amp;World

md5_hash(encvalue)

 

md5 hash the specified value. Example Format: b10a8db164e0754105b7a99be72e3fe5

sha1_hash(encvalue)

 

sha1 hash the specified value. Example Format: 0a4d55a8d778e5022fab701977c5d840bbc486d0

sqlchar_encode(encvalue)

 

SQL char encode the specified value. Example Format: CHAR(72)+CHAR(101)+CHAR(108)+CHAR(108)+CHAR(111)

decimal_convert(encvalue)

 

Convert input to decimal value. Example Format: 721011081081113287111114108100

decimal_entity_encode(encvalue)

 

Convert input to a decimal entity. Example Format: &#72;&#101;&#108;&#108;&#111;&#32;&#87;&#111;&#114;&#108;&#100;

rot13_encode(encvalue)

 

Perform ROT13 encoding on the specified value. Example Format: Uryyb Jbeyq

url_decode(decvalue)

 

URL Decode the specified value. Example Format: Hello%20World

fullurl_decode(decvalue)

 

Full URL decode the specified value. Example Format: %48%65%6c%6c%6f%20%57%6f%72%6c%64

base64_decode(decvalue)

 

Base64 decode the specified value. Example Format: SGVsbG8gV29ybGQ=

hex_decode(decvalue)

 

Hex decode the specified value. Example Format: 48656c6c6f2576f726c64

hexentity_decode(decvalue)

 

Hex entity decode the specified value. Example Format: &#x48;&#x65;&#x6c;&#x6c;&#x6f;

unicode_decode(decvalue)

 

Unicode decode the specified value %u00 format. Example Format: %u0048%u0065%u006c%u006c%u006f%u0020%u0057%u006f%u0072%u006c%u0064

rot13_decode(decvalue)

 

ROT13 decode the specified value. Example Format: Uryyb Jbeyq