CryptLib
[ class tree: CryptLib ] [ index: CryptLib ] [ all elements ]

Class: CryptBlowfish

Source Location: /CryptLib/CryptBlowfish.php

Class Overview


This class implements the Blowfish encryption algorithm.


Author(s):

  • Randy L. Pearson

Version:

  • 0.1

Implements interfaces:

Methods



Class Details

[line 16]
This class implements the Blowfish encryption algorithm.

You must supply a 12 or 13 character salt to use during this scheme.




Tags:

author:  Randy L. Pearson
version:  0.1


[ Top ]


Class Methods


constructor __construct [line 26]

none __construct( [ $options = null])

Constructor



Tags:

return:  Throws error if encryption algorithm not available or no 'salt' property.
access:  public


Parameters:

PropertyHolder   $options   Optional list of properties. Extracts the 'salt' property.

[ Top ]

method decrypt [line 60]

void decrypt( $data)

Blowfish is a one-way encryption, so throws error always.



Tags:

access:  public



Implementation of:
CryptEngine::decrypt()
Decrypts an encrypted string.

Parameters:

   $data  

[ Top ]

method encrypt [line 49]

string encrypt( string $data)

Encrypt the string using the Standard DES algorithm. Uses 'salt' string.



Tags:

return:  The encrypted data.
access:  public



Implementation of:
CryptEngine::encrypt()
Encrypts a string and returns the encrypted version.

Parameters:

string   $data   Data to be encrypted.

[ Top ]

method getOptions [line 92]

PropertyHolder getOptions( )

Returns the current options.



Tags:

return:  A list of current properties for the engine.
access:  public



Implementation of:
CryptEngine::getOptions()
Returns the current options for the encryption scheme.
[ Top ]

method setOptions [line 71]

none setOptions( $options)

Changes the current options for the encryption scheme. Only looks for the 'salt' property.



Tags:

return:  Throws error if 'salt' property is not found or invalid.
access:  public



Implementation of:
CryptEngine::setOptions()
Sets the options for the encryption scheme.

Parameters:

PropertyHolder   $options   The properties to be copied. Only copies 'salt' if found.

[ Top ]


Documentation generated on Wed, 15 Nov 2006 08:47:58 -0600 by phpDocumentor 1.3.1