PHP 클래스 PrivateBin\Persistence\ServerSalt

This is a random string which is unique to each PrivateBin installation. It is automatically created if not present. Salt is used: - to generate unique VizHash in discussions (which are not reproductible across PrivateBin servers) - to generate unique deletion token (which are not re-usable across PrivateBin servers)
상속: extends AbstractPersistence
파일 보기 프로젝트 열기: privatebin/privatebin 1 사용 예제들

공개 메소드들

메소드 설명
generate ( ) : string generate a large random hexadecimal salt
get ( ) : string get server salt
setPath ( string $path ) : void set the path

메소드 상세

generate() 공개 정적인 메소드

generate a large random hexadecimal salt
public static generate ( ) : string
리턴 string

get() 공개 정적인 메소드

get server salt
public static get ( ) : string
리턴 string

setPath() 공개 정적인 메소드

set the path
public static setPath ( string $path ) : void
$path string
리턴 void