Documentation

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

$_salt

generated salt

private static string $_salt = ''
Tags
access

private

static

Methods

generate()

generate a large random hexadecimal salt

public static generate() : string
Tags
access

public

static
Return values
string

get()

get server salt

public static get() : string
Tags
access

public

static
Return values
string

        
On this page

Search results