PHP 클래스 Defuse\Crypto\Encoding

파일 보기 프로젝트 열기: defuse/php-encryption 1 사용 예제들

공개 메소드들

메소드 설명
binToHex ( string $byte_string ) : string Converts a byte string to a hexadecimal string without leaking information through side channels.
hexToBin ( string $hex_string ) : string Converts a hexadecimal string into a byte string without leaking information through side channels.
loadBytesFromChecksummedAsciiSafeString ( string $expected_header, string $string ) : string INTERNAL USE ONLY: Decodes, verifies the header and checksum, and returns the encoded byte string.
saveBytesToChecksummedAsciiSafeString ( string $header, string $bytes ) : string INTERNAL USE ONLY: Applies a version header, applies a checksum, and then encodes a byte string into a range of printable ASCII characters.

메소드 상세

binToHex() 공개 정적인 메소드

Converts a byte string to a hexadecimal string without leaking information through side channels.
public static binToHex ( string $byte_string ) : string
$byte_string string
리턴 string

hexToBin() 공개 정적인 메소드

Converts a hexadecimal string into a byte string without leaking information through side channels.
public static hexToBin ( string $hex_string ) : string
$hex_string string
리턴 string

loadBytesFromChecksummedAsciiSafeString() 공개 정적인 메소드

INTERNAL USE ONLY: Decodes, verifies the header and checksum, and returns the encoded byte string.
public static loadBytesFromChecksummedAsciiSafeString ( string $expected_header, string $string ) : string
$expected_header string
$string string
리턴 string

saveBytesToChecksummedAsciiSafeString() 공개 정적인 메소드

INTERNAL USE ONLY: Applies a version header, applies a checksum, and then encodes a byte string into a range of printable ASCII characters.
public static saveBytesToChecksummedAsciiSafeString ( string $header, string $bytes ) : string
$header string
$bytes string
리턴 string