Properties

$_uniqueId

$_uniqueId : 

Type

$_conf

$_conf : 

Type

$_appConf

$_appConf : 

Type

$_value

$_value : 

Type

$PBKDF2_HASH_ALGORITHM

$PBKDF2_HASH_ALGORITHM : \framework\components\security\unknown

数据处理方式

Type

\framework\components\security\unknown

$PBKDF2_ITERATIONS

$PBKDF2_ITERATIONS : \framework\components\security\unknown

机密数据循环次数

Type

\framework\components\security\unknown

$PBKDF2_SALT_BYTE_SIZE

$PBKDF2_SALT_BYTE_SIZE : \framework\components\security\unknown

加密用盐的长度

Type

\framework\components\security\unknown

$PBKDF2_HASH_BYTE_SIZE

$PBKDF2_HASH_BYTE_SIZE : \framework\components\security\unknown

hash数据的长度

Type

\framework\components\security\unknown

$HashSalt

$HashSalt : \framework\components\security\unknown

保存hash加盐

Type

\framework\components\security\unknown

$HashStr

$HashStr : \framework\components\security\unknown

加密结果

Type

\framework\components\security\unknown

Methods

__construct()

__construct(  $conf = array()) 

Parameters

$conf

unInstallNow()

unInstallNow(  $isComplete = false) 

Parameters

$isComplete

getConfPack()

getConfPack() 

setUniqueId()

setUniqueId(  $name) 

Parameters

$name

getConf()

getConf() 

getAppConf()

getAppConf() 

triggerThrowable()

triggerThrowable(\Throwable  $e) 

Parameters

\Throwable $e

handleThrowable()

handleThrowable(\Throwable  $e) 

Parameters

\Throwable $e

setPassword()

setPassword(  $val) 

Parameters

$val

setHash()

setHash(  $val) 

Parameters

$val

setSalt()

setSalt(  $val) 

Parameters

$val

GetHashSalt()

GetHashSalt() : \framework\components\security\unknown

获取盐

Returns

\framework\components\security\unknown

GetHashStr()

GetHashStr() 

MakeHashStr()

MakeHashStr() 

生成密码

validate()

validate() 

检测密码是否正确

getComponent()

getComponent(  $haver,   $componentName,   $params = array()) 

Parameters

$haver
$componentName
$params

unInstall()

unInstall(  $isComplete = false) 

Parameters

$isComplete

getValueFromConf()

getValueFromConf(  $key,   $default = '') 

Parameters

$key
$default

init()

init() 

MakeHashSalt()

MakeHashSalt() 

申城hash眼

MakeTmpSalt()

MakeTmpSalt() 

生成临时的salt

SlowEquals()

SlowEquals(\framework\components\security\unknown  $a, \framework\components\security\unknown  $b) : boolean

检测是不是相同

Parameters

\framework\components\security\unknown $a
\framework\components\security\unknown $b

Returns

boolean

Pbkdf2()

Pbkdf2(\framework\components\security\unknown  $algorithm, \framework\components\security\unknown  $password, \framework\components\security\unknown  $salt, \framework\components\security\unknown  $count, \framework\components\security\unknown  $key_length, string  $raw_output = false) 

进行加密

Parameters

\framework\components\security\unknown $algorithm
\framework\components\security\unknown $password
\framework\components\security\unknown $salt
\framework\components\security\unknown $count
\framework\components\security\unknown $key_length
string $raw_output