Class JaPCrypt

Description

JaPCrypt v0.1

HTTPS-like encryption by using Javascript and PHP

Located in /JaPCrypt.class.php (line 6)


	
			
Variable Summary
string $TEAkey
boolean $unicode
Method Summary
void getVars (string $value)
string makeAnchor (string $url)
void ob_end_flush ([boolean $debug = false])
void sendOutput (string $TEAbody, [boolean $debug = false])
Variables
string $TEAkey (line 19)

The TEA key

  • access: public
boolean $unicode (line 13)

Set to true to send Unicode output

  • access: public
Methods
getVars (line 69)

Decrypt GET or POST variables

void getVars (string $value)
  • string $value: GET or POST, specifying which values I want to decrypt
makeAnchor (line 40)

Creates strings valid in "href" field of <a> tags.

Usage: <a href='<?= makeAnchor("/file.php?value=secret") ?>'>

  • return: the encrypted url
string makeAnchor (string $url)
  • string $url: the starting url
ob_end_flush (line 26)

This function is used in cominbation with ob_start() to flush an encrypted output. An alternative to sendOutput().

void ob_end_flush ([boolean $debug = false])
  • boolean $debug: - used to show non-encrypted output for debugging
sendOutput (line 92)

Sends encrypted output.

void sendOutput (string $TEAbody, [boolean $debug = false])
  • string $TEAbody: the content to be encrypted
  • boolean $debug: used to show non-encrypted output for debugging

Documentation generated on Thu, 08 Nov 2007 09:55:13 +0100 by phpDocumentor 1.3.0RC3