PHP Class 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)
Inheritance: extends AbstractPersistence
显示文件 Open project: privatebin/privatebin Class Usage Examples

Public Methods

Method Description
generate ( ) : string generate a large random hexadecimal salt
get ( ) : string get server salt
setPath ( string $path ) : void set the path

Method Details

generate() public static method

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

get() public static method

get server salt
public static get ( ) : string
return string

setPath() public static method

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