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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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