\PrivateBin\PersistenceServerSalt

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)

Summary

Methods
Properties
Constants
setStore()
generate()
get()
No public properties found
No constants found
No protected methods found
$_store
N/A
No private methods found
$_salt
N/A

Properties

$_salt

$_salt :string

generated salt

Type

string

Methods

generate()

generate(): string

generate a large random hexadecimal salt

Returns

string

get()

get(): string

get server salt

Returns

string