Login   Register  
PHP Classes
elePHPant
Icontem

OTP_TS

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Jacek Wloka
Name: Jacek Wloka <e-mail contact>
Packages: 5 Browse all classes by Jacek Wloka Browse all classes by
Country: Poland Poland - PHP jobs in Poland
Age: 26
All time rank: 3717 in Poland Poland
Week rank: 473 Down15 in Poland Poland Down
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
This class can be used to encrypt and decrypt data with one time pad cipher algorithm implemented in pure PHP.

The class has a single function that takes a password and a string of the data to encrypt.

The password is used to create a cypher that encrypts the data using an XOR operation.

The same function to encrypt can be used to decrypt the encrypted data using the same password.

  Classes of Jacek Wloka  >  OTP_TS  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: OTP_TS
Base name: otp_ts
Description: Encrypt and decrypt data with one time pad cipher
Version: 1
PHP version: 4.0
License: GNU Lesser General Public License (LGPL)
All time users: 696 users
All time rank: 4072
Week users: 0 users
Week rank: 2054 Equal
 
  Groups   Screenshots Screenshots   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Cryptography Encrypting, decrypting and hashing data View top rated classes

  Files folder image Screenshots  
example 1 txt
File Role Description
Accessible without login Image file Image1.gif Screen example 1 txt


  Innovation Award  
PHP Programming Innovation award nominee
June 2007
Number 8

Prize: One downloadable copy of PhpED Professional
The quality of encryption algorithms depends on how hard they are to break using brute force methods.

Most strong encryption methods also take a lot of CPU resources to encrypt and decrypt data.

One time pad algorithms are much simpler and take less resources when used to encrypt and decrypt data.

This class implements a one-time pad algorithm in pure PHP code. It generates several hashes of the encryption password to compute a random cypher that is used to encrypt and decrypt data.

The actual encryption and decryption is very light because it consists of a simple XOR operation over the data to encrypt or decrypt. The encryption and encryption procedure is the same, making the class very small.

Manuel Lemos

  User ratings  
Not yet rated by the users

  Applications that use this class  
Link Description
Package OTP_TS Package rar class OTP_TS
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file example_file.php Example Example 1 of file
Plain text file example_form.php Example Example 3
Plain text file example_txt.php Example Text example 1
Plain text file class.OTP_TS.php Class class OTP_TS
Image file linux.bmp Icon img 1

Download all files: otp_ts.tar.gz otp_ts.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.