PHP 클래스 Horde_Crypt_Blowfish_Base, horde

저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$cipher string Cipher method.
$iv string Initialization vector.
$key string Encryption key.

공개 메소드들

메소드 설명
__construct ( string $cipher ) Constructor.
decrypt ( string $text ) : string Decrypts a string.
encrypt ( string $text ) : string Encrypts a string.
setIv ( string $iv = null ) Sets the initialization vector (required for CBC mode).
supported ( ) : boolean Is this driver supported on this system?

보호된 메소드들

메소드 설명
_pad ( string $text, boolean $ignore = false ) : string Pad text to match blocksize length.
_unpad ( string $text ) : string Unpad text from blocksize boundary.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $cipher )
$cipher string Either 'ecb' or 'cbc'.

_pad() 보호된 메소드

Pad text to match blocksize length.
protected _pad ( string $text, boolean $ignore = false ) : string
$text string Unpadded text.
$ignore boolean Don't pad if already at blocksize length.
리턴 string Padded text.

_unpad() 보호된 메소드

Unpad text from blocksize boundary.
protected _unpad ( string $text ) : string
$text string Padded text.
리턴 string Unpadded text.

decrypt() 추상적인 공개 메소드

Decrypts a string.
abstract public decrypt ( string $text ) : string
$text string The string to encrypt.
리턴 string The ciphertext.

encrypt() 추상적인 공개 메소드

Encrypts a string.
abstract public encrypt ( string $text ) : string
$text string The string to encrypt.
리턴 string The ciphertext.

setIv() 공개 메소드

Sets the initialization vector (required for CBC mode).
public setIv ( string $iv = null )
$iv string Initialization vector.

supported() 공개 정적인 메소드

Is this driver supported on this system?
public static supported ( ) : boolean
리턴 boolean True if supported.

프로퍼티 상세

$cipher 공개적으로 프로퍼티

Cipher method.
public string $cipher
리턴 string

$iv 공개적으로 프로퍼티

Initialization vector.
public string $iv
리턴 string

$key 공개적으로 프로퍼티

Encryption key.
public string $key
리턴 string