PHP 클래스 Horde_Crypt, horde

Copyright 2002-2014 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_params array Configuration parameters.

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Constructor.
decrypt ( string $data, array $params = [] ) : array Decrypt the requested data.
encrypt ( string $data, array $params = [] ) : array Encrypt the requested data.
factory ( string $driver, array $params = [] ) : Horde_Crypt Attempts to return a concrete Horde_Crypt instance based on $driver.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $params = [] )
$params array Configuration parameters: - email_charset: (string) The default email charset.

decrypt() 공개 메소드

This method should be provided by all classes that extend Horde_Crypt.
public decrypt ( string $data, array $params = [] ) : array
$data string The data to decrypt.
$params array An array of arguments needed to decrypt the data.
리턴 array The decrypted data.

encrypt() 공개 메소드

This method should be provided by all classes that extend Horde_Crypt.
public encrypt ( string $data, array $params = [] ) : array
$data string The data to encrypt.
$params array An array of arguments needed to encrypt the data.
리턴 array The encrypted data.

factory() 공개 정적인 메소드

Attempts to return a concrete Horde_Crypt instance based on $driver.
public static factory ( string $driver, array $params = [] ) : Horde_Crypt
$driver string Either a driver name, or the full class name to use (class must extend Horde_Crypt).
$params array A hash containing any additional configuration or parameters a subclass might need.
리턴 Horde_Crypt The newly created concrete instance.

프로퍼티 상세

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

Configuration parameters.
protected array $_params
리턴 array