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

Class: CryptNativeMD5

Source Location: /CryptLib/CryptNativeMD5.php

Class Overview


This class implements the MD5 encryption algorithm using the built-in md5() function.


Author(s):

  • Randy L. Pearson

Version:

  • 0.1

Implements interfaces:

Methods



Class Details

[line 16]
This class implements the MD5 encryption algorithm using the built-in md5() function.



Tags:

author:  Randy L. Pearson
version:  0.1


[ Top ]


Class Methods


constructor __construct [line 23]

CryptNativeMD5 __construct( [ $options = null])

Constructor



Tags:

access:  public


Parameters:

PropertyHolder   $options   Optional list of properties. (Not used.)

[ Top ]

method decrypt [line 43]

void decrypt( $data)

MD5 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 35]

string encrypt( string $data)

Encrypt the string using the RSA MD5 algorithm.



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 64]

none getOptions( )

Returns the current options.



Tags:

return:  Throws error since this algorithm has no options.
access:  public



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

method setOptions [line 54]

none setOptions( $options)

Changes the current options for the encryption scheme.



Tags:

return:  Throws error always.
access:  public



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

Parameters:

PropertyHolder   $options   The properties to be copied.

[ Top ]


Documentation generated on Wed, 15 Nov 2006 08:48:02 -0600 by phpDocumentor 1.3.1