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

Class: secure_hash_example

Source Location: /secure_hash/secure_hash.class.php

Class Overview

secure_hash
   |
   --secure_hash_example

Example code how secure_hash can be easily extended for own hashing methods.


Author(s):

Version:

  • v0.1_2009.09.18

Variables

Methods


Inherited Variables

Inherited Methods

Class: secure_hash

secure_hash::check()
Checks if a formated hash is equal to a password
secure_hash::hash()
Hashes a string and returns the formated hash.
secure_hash::_hash_md5()
Plugin md5 hashing method
secure_hash::_hash_sha1()
Plugin sha1 hashing method
secure_hash::_new_permutation()
Returns a new permutaion which can be used in this class
secure_hash::_p()
Permutation string with global rules
secure_hash::_permutate()
Permutate a string with given rule
secure_hash::_salt()
Generate a random salt

Class Details

[line 308]
Example code how secure_hash can be easily extended for own hashing methods.



Tags:

version:  v0.1_2009.09.18


[ Top ]


Class Variables

$hashing_method =  'own'

[line 313]

New default hashing function


Type:   mixed
Overrides:   Array


[ Top ]



Class Methods


method _hash_own [line 322]

string _hash_own( string $str, string $salt, int $iter)

Plugin own hashing method



Parameters:

string   $str   string to hash
string   $salt   salt to use
int   $iter   iterations to do

[ Top ]


Documentation generated on Fri, 29 Jan 2010 08:49:12 +0100 by phpDocumentor 1.4.3