PHP 클래스 ParagonIE\Halite\Structure\Node

This library makes heavy use of return-type declarations, which are a PHP 7 only feature. Read more about them here:
파일 보기 프로젝트 열기: paragonie/halite 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $data ) Node constructor.
getData ( ) : string Get the data
getExpandedNode ( string $concat ) : Node Nodes are immutable, but you can create one with extra data.
getHash ( boolean $raw = false, integer $outputSize = Sodium\CRYPTO_GENERICHASH_BYTES, string $personalization = '' ) : string Get a hash of the data (defaults to hex encoded)

메소드 상세

__construct() 공개 메소드

Node constructor.
public __construct ( string $data )
$data string

getData() 공개 메소드

Get the data
public getData ( ) : string
리턴 string

getExpandedNode() 공개 메소드

Nodes are immutable, but you can create one with extra data.
public getExpandedNode ( string $concat ) : Node
$concat string
리턴 Node

getHash() 공개 메소드

Get a hash of the data (defaults to hex encoded)
public getHash ( boolean $raw = false, integer $outputSize = Sodium\CRYPTO_GENERICHASH_BYTES, string $personalization = '' ) : string
$raw boolean These two aren't really meant to be used externally:
$outputSize integer
$personalization string
리턴 string