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

Class: CryptNativeSHA1

Source Location: /CryptLib/CryptNativeSHA1.php

Class Overview


This class implements the SHA encryption algorithm using the built-in sha1() function.


Author(s):

  • Randy L. Pearson

Version:

  • 0.1

Implements interfaces:

Methods



Class Details

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



Tags:

author:  Randy L. Pearson
version:  0.1


[ Top ]


Class Methods


constructor __construct [line 23]

CryptNativeSHA1 __construct( [ $options = null])

Constructor



Tags:

access:  public


Parameters:

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

[ Top ]

method decrypt [line 43]

void decrypt( $data)

SHA1 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 US SHA1 hashing 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 always.
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