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

Class: Crypt_HMAC

Source Location: /Crypt_HMAC-1.0.1/HMAC.php

Class Overview


Calculates RFC 2104 compliant HMACs


Author(s):

Copyright:

  • 1997-2005 The PHP Group

Methods


Inherited Variables

Inherited Methods


Class Details

[line 41]
Calculates RFC 2104 compliant HMACs


[ Top ]


Method Detail

Crypt_HMAC (Constructor)   [line 82]

void Crypt_HMAC( string $key, [string $func = 'md5'])

Constructor Pass method as first parameter
  • Access: public

Parameters:

string   $key   —  Key to use for hash
string   $func   —  Hash function used for the calculation

[ Top ]

hash   [line 154]

string hash( string $data)

Hashing function
  • Access: public

Parameters:

string   $data   —  string that will encrypted

[ Top ]

setFunction   [line 96]

void setFunction( string $func)

Sets hash function
  • Access: public

Parameters:

string   $func   —  Hash function to use

[ Top ]

setKey   [line 112]

void setKey( string $key)

Sets key to use with hash
  • Access: public

Parameters:

string   $key   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:24:02 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.