voodoo-doll/crypto

Lib to hash password and encode/decode string

1.0 2014-05-28 07:34 UTC

README

Setup

Add the code below in the file: /App/_conf/Doll.conf.php

[Crypto] salt = '#89.pp767bgx__8edrfpn4^N%KBRVJH$#%I ^N:LM(){NV CQX-][":.7n36F;-' ; Salt for hashing. salt used to fill the private key to a total length of 56 characters cost = 10 ; Password only. denotes the algorithmic cost that should be used key = "" ; String only.

Example:

(Voodoo\Doll\Crypto\String)->encode($string)

(Voodoo\Doll\Crypto\String)->decode($string)

(Voodoo\Doll\Crypto\Password)->hash($string)

(Voodoo\Doll\Crypto\Password)->verify($string, $hash)