PHP 클래스 Pop\Crypt\Mcrypt

저자: Nick Sagona, III ([email protected])
상속: extends Pop\Crypt\AbstractCrypt
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cipher integer Cipher
$iv string IV
$ivSize integer IV size
$mode integer Mode
$salt string Salt
$source integer Source

공개 메소드들

메소드 설명
__construct ( integer $cipher = null, integer $mode = null, integer $source = null ) : self Constructor
create ( string $string ) : string Method to create the hashed value
decrypt ( string $hash ) : string Method to decrypt the hashed value
getCipher ( ) : integer Method to get the cipher
getIv ( ) : string Method to get the iv
getIvSize ( ) : integer Method to get the iv size
getMode ( ) : integer Method to get the mode
getSalt ( ) : string Method to get the salt
getSource ( ) : integer Method to get the source
setCipher ( integer $cipher = null ) : self Method to set the cipher
setMode ( integer $mode = null ) : self Method to set the mode
setSalt ( string $salt = null ) : self Method to set the salt
setSource ( integer $source = null ) : self Method to set the source
verify ( string $string, string $hash ) : boolean Method to verify the hashed value

메소드 상세

__construct() 공개 메소드

Instantiate the mcrypt object.
public __construct ( integer $cipher = null, integer $mode = null, integer $source = null ) : self
$cipher integer
$mode integer
$source integer
리턴 self

create() 공개 메소드

Method to create the hashed value
public create ( string $string ) : string
$string string
리턴 string

decrypt() 공개 메소드

Method to decrypt the hashed value
public decrypt ( string $hash ) : string
$hash string
리턴 string

getCipher() 공개 메소드

Method to get the cipher
public getCipher ( ) : integer
리턴 integer

getIv() 공개 메소드

Method to get the iv
public getIv ( ) : string
리턴 string

getIvSize() 공개 메소드

Method to get the iv size
public getIvSize ( ) : integer
리턴 integer

getMode() 공개 메소드

Method to get the mode
public getMode ( ) : integer
리턴 integer

getSalt() 공개 메소드

Method to get the salt
public getSalt ( ) : string
리턴 string

getSource() 공개 메소드

Method to get the source
public getSource ( ) : integer
리턴 integer

setCipher() 공개 메소드

Method to set the cipher
public setCipher ( integer $cipher = null ) : self
$cipher integer
리턴 self

setMode() 공개 메소드

Method to set the mode
public setMode ( integer $mode = null ) : self
$mode integer
리턴 self

setSalt() 공개 메소드

Method to set the salt
public setSalt ( string $salt = null ) : self
$salt string
리턴 self

setSource() 공개 메소드

Method to set the source
public setSource ( integer $source = null ) : self
$source integer
리턴 self

verify() 공개 메소드

Method to verify the hashed value
public verify ( string $string, string $hash ) : boolean
$string string
$hash string
리턴 boolean

프로퍼티 상세

$cipher 보호되어 있는 프로퍼티

Cipher
protected int $cipher
리턴 integer

$iv 보호되어 있는 프로퍼티

IV
protected string $iv
리턴 string

$ivSize 보호되어 있는 프로퍼티

IV size
protected int $ivSize
리턴 integer

$mode 보호되어 있는 프로퍼티

Mode
protected int $mode
리턴 integer

$salt 보호되어 있는 프로퍼티

Salt
protected string $salt
리턴 string

$source 보호되어 있는 프로퍼티

Source
protected int $source
리턴 integer