|
|
|
File: ../general-devel/lib/support/transform/hash/transformhash.class.php
phpGeneral - support
TransformHash
Transform | +-- TransformHash
Provides implementations for hash functions
|
public class TransformHash extends Transform
Provides implementations for hash functions
Contains various functions to transform strings into one-way hashes byperfoming well known algorithms on these strings.
|
| |
|
|
|
|
|
|
|
|
|
Public Method Details |
TransformHash |
|
public object TransformHash TransformHash( array $param, string &$errmsg )
|
| |
Class constructor
Initializes member variables and sets up the base class
|
| Parameter |
|
| array |
$param |
|
|
Associative array contains userid, password and realm |
|
|
| string |
&$errmsg |
|
|
Reference for storing error messages in case of a failure |
|
| Returns |
object TransformHash |
|
unix |
|
public string unix( string $data, string &$errmsg )
|
| |
Unix crypt function
Creates an unix cyrpt hash for the given string
|
| Parameter |
|
| string |
$data |
|
|
Input string for the crypt function |
|
|
| string |
&$errmsg |
|
|
Reference for storing error messages in case of a failure |
|
| Returns |
string Computed hash |
|
|
|
|
|
|
|
| PHPDoc 1.0beta |