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

Class: Crypt_Hash

Source Location: /lib/3rdParty/phpseclib/Crypt/Hash.php

Class Overview


Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.


Author(s):

Version:

  • 0.1.0

Methods



Class Details

[line 82]
Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.



Tags:

author:  Jim Wigginton <terrafrost@php.net>
version:  0.1.0
access:  public


[ Top ]


Class Methods


constructor Crypt_Hash [line 144]

Crypt_Hash Crypt_Hash( [optional $hash = 'sha1'])

Default Constructor.



Tags:

access:  public


Parameters:

optional   $hash   String $hash

[ Top ]

method hash [line 289]

String hash( String $text)

Compute the HMAC.



Tags:

access:  public


Parameters:

String   $text  

[ Top ]

method setHash [line 181]

void setHash( String $hash)

Sets the hash function.



Tags:

access:  public


Parameters:

String   $hash  

[ Top ]

method setKey [line 170]

void setKey( String $key)

Sets the key for HMACs

Keys can be of any length.




Tags:

access:  public


Parameters:

String   $key  

[ Top ]


Documentation generated on Thu, 28 Oct 2010 21:00:15 +0200 by phpDocumentor 1.4.1