FlstObstrufucate script
How to use it from php:
You can use this text to make a text hard to read for normal users.
The script works in php and javascript(you can comunicate with javascript or php via generated code).
- Create a new object: $ob= new FlstObstrufucate();
- Encode a string: $ob->encode('Decode me please',3). Where 3 is the density key
- Decode a string: $ob->decode('Gphfrogh#kph#Rsohgdvhl' ,3). Where 3 is the density key that was used when it was encoded
The density number shouldn't be bigger then the string length and it must be the same for decode and encode
How to use it from Javascript:
- Create a new object:var ob= new FlstObstrufucate();
- Encode a string: ob.encode('Decode me please',3). Where 3 is the density key
- Decode a string: ob.decode('Gphfrogh#kph#Rsohgdvhl' ,3). Where 3 is the density key that was used when it was encoded
How to use it from Actionscript:
- Create a new object:var ob:FlstObstrufucate = new FlstObstrufucate();
- Encode a string: ob.encode('Decode me please',3). Where 3 is the density key
- Decode a string: ob.decode('Gphfrogh#kph#Rsohgdvhl' ,3). Where 3 is the density key that was used when it was encoded
Here is a adobe flash demo. The zip file contains and a fla file along with the .as FlstObstrufucate as3 class