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
Afficher le fichier Open project: privatebin/privatebin Class Usage Examples

Méthodes publiques

Méthode 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 méthode

generate a large random hexadecimal salt
public static generate ( ) : string
Résultat string

get() public static méthode

get server salt
public static get ( ) : string
Résultat string

setPath() public static méthode

set the path
public static setPath ( string $path ) : void
$path string
Résultat void