Properties

$_uniqueId

$_uniqueId : 

Type

$_conf

$_conf : 

Type

$_appConf

$_appConf : 

Type

$_handle

$_handle : 

Type

$_cipher

$_cipher : \framework\components\security\unknown

加密所用的算法

Type

\framework\components\security\unknown

$_mode

$_mode : \framework\components\security\unknown

加密的模式 cbc在相同数据的处理上比ecb安全 特别是对图片

Type

\framework\components\security\unknown

$_isPad

$_isPad : \framework\components\security\unknown

数据填充?

Type

\framework\components\security\unknown

$_secretKey

$_secretKey : \framework\components\security\unknown

秘钥

Type

\framework\components\security\unknown

$_iv

$_iv : \framework\components\security\unknown

偏移向量

Type

\framework\components\security\unknown

$_codeType

$_codeType : 

加密结果编码

Type

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

setCipher()

setCipher(\framework\components\security\unknown  $cipher) 

设置加密算法

Parameters

\framework\components\security\unknown $cipher

setMode()

setMode(\framework\components\security\unknown  $mode) 

设置加密模式

Parameters

\framework\components\security\unknown $mode

setIv()

setIv(\framework\components\security\unknown  $iv) 

设置便宜向量

Parameters

\framework\components\security\unknown $iv

setKey()

setKey(\framework\components\security\unknown  $key) 

设置秘钥

Parameters

\framework\components\security\unknown $key

setCodeType()

setCodeType(  $type) 

Parameters

$type

encrypt()

encrypt(  $value) 

加密

Parameters

$value

decrypt()

decrypt() 

__destruct()

__destruct() 

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() 

padOrUnPad()

padOrUnPad(  $str,   $ext) 

Parameters

$str
$ext

pad()

pad(\framework\components\security\unknown  $str) 

填充

Parameters

\framework\components\security\unknown $str

unPad()

unPad(\framework\components\security\unknown  $str) 

解除填充

Parameters

\framework\components\security\unknown $str

hex2bin()

hex2bin(\framework\components\security\unknown  $hexdata) 

16进制转2进制

Parameters

\framework\components\security\unknown $hexdata

pkcs5_pad()

pkcs5_pad(  $text,   $blocksize = 16) 

Parameters

$text
$blocksize

pkcs5_unpad()

pkcs5_unpad(  $text) 

Parameters

$text

initHandle()

initHandle()