ServerSalt
extends AbstractPersistence
in package
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)
Table of Contents
Properties
- $_store : AbstractData
- data storage to use to persist something
- $_salt : string
- generated salt
Methods
- generate() : string
- generate a large random hexadecimal salt
- get() : string
- get server salt
- setStore() : mixed
- set the path
Properties
$_store
data storage to use to persist something
protected
static AbstractData
$_store
Tags
$_salt
generated salt
private
static string
$_salt
= ''
Tags
Methods
generate()
generate a large random hexadecimal salt
public
static generate() : string
Tags
Return values
stringget()
get server salt
public
static get() : string
Tags
Return values
stringsetStore()
set the path
public
static setStore(AbstractData $store) : mixed
Parameters
- $store : AbstractData