Like this code?
Show the author your appreciation.
Scramble and descramble any values with fake text and numbers patterns, this is a good alternative to encryption. Can be used to disguise GET, POST and SESSION values.
see a demo and video
http://www.amigura.co.uk/php_blog/
<?php
/*
scramble and descramble values with fake text and numbers patterns this is an alternative to encryption.
author: Amigura
website: http://www.amigura.co.uk/php_blog/
*/
include 'scramble_eggs.php' ;
// how much fake text to add
$len = '5' ;
// characters to use - numbers/letters
$charset = '2' ;
// where to add fake text
$pattern = '3' ;
// text to scramble
$realtext = 'scramble and descramble values with fake text and numbers patterns, this is so cool.' ;
// call class
$scramble_it = new scramble_text ;
// output class
// scramble text
echo '<br><strong>Scrambled text</strong><br>' ;
$scramble_it -> fake_text ( $realtext , $pattern , $charset , $len );
echo $scramble_it -> $scrambled_val ;
?>
A damaged image generator (class) for validating text.
CAPTCHA - Completely Automated Public Turing test to tell Computers and Humans Apart Categories : PHP , PHP Classes , Security , GD image library , Security PHP Cookies - Simple cookie write/read methods that allow basic encryption Categories : PHP , Cookies , Security , Encryption Use of bitmasks to represent permissions Categories : PHP , Authentication , Bitwise Operators , Security , PHP Classes Password Creator: This PHP code exmaple shows how to use bitwise operations on a single variable and using it as a flagged variable. The class generates passwords of a given length using specified characters and the flags. Categories : PHP , PHP Classes , Algorithms , Security Scan Apache access log files and report possible worms attack Categories : PHP , PHP Classes , Security , Apache , Log Files base64 with encryption - encode and decode sessions Categories : PHP , PHP Classes , Encryption , Sessions PHP Function to Encrypt/Decrypt a string without a known key. The string itself has his own different key for every character. Categories : PHP , Algorithms , Security , Authentication , Encryption Function to generate readable/remeberable random password Categories : PHP , Security , Security Forms protected from XSS attacks (FOPAXSS) Categories : PHP , PHP Classes , Form Processing , Security A PHP function to encrypt and decrypt a number or string or a combination of the two. Categories : PHP , Encryption , Security Antispoof - a class to help prevent people hi-jacking and misusing parts of a website Categories : PHP , PHP Classes , Security Generating and Matching Secure and Strong Password Hash Categories : PHP , PHP Classes , Cryptography , Security IPhider Obscure Any URL Anonymity connection lores obfuscation corporate survival. Categories : PHP , Algorithms , Security , URLs Three Cool Classes and One Trick Categories : PHP , PHP Classes , Graphics , Email Blueshoes PHP Application Framework Categories : PHP , Frameworks , PHP Classes