Documentation

passCheck extends remoteModel
in package

pwnedpasswords.com password check model

Tags
author

Stefan Seehafer aka imagine fanpress@nobody-knows.org

copyright

(c) 2011-2020, Stefan Seehafer

license

http://www.gnu.org/licenses/gpl.txt GPLv3

since
4.1

Table of Contents

FURLOPEN_ERROR  = 400
Hinweis, dass allow_url_fopen nicht aktiv ist
REMOTECONTENT_ERROR  = 402
Fehler beim Abrüfen der Update-Informationen
REMOTEFILE_ERROR  = 401
Fehler beim Prüfung, ob Update-Server erreichbar ist
$cache  : cache
Cache object
$cacheModule  : string
Cache Modul
$cacheName  : string
Cache name
$canConnect  : bool
Verbindungen zu anderem Server möglich
$checkParams  : array<string|int, mixed>
Datenparameter
$config  : config
Config object
$data  : array<string|int, mixed>
Data array
$events  : events
Event list
$language  : language
Sprachobjekt
$notifications  : notifications
Notifications
$passHash  : string
SHA1 password hash
$passLimit  : int
Password delimiter
$permissions  : permissions
Permissions
$remoteData  : string
vom Server zurückgegebene Daten
$remotePort  : string
Server port
$remoteServer  : string
URL zum Server
$remoteServerBase  : string
Server string
$session  : session
Session objekt
__construct()  : void
Konstruktor
fetchRemoteData()  : bool
Ftech data from remote source
getCacheName()  : string
Cache-Name zurückgeben
getRemoteData()  : array<string|int, mixed>
Daten zurückgeben, die vom Server abgerufen wurden
isPowned()  : bool
Checks password string against pwnedpasswords.com, transfers an 5-char SHA1 hash
remoteAvailable()  : bool
Prüft, ob Update-Server verfügbar ist
saveRemoteData()  : bool
Writes remote repository data to local storage

Constants

FURLOPEN_ERROR

Hinweis, dass allow_url_fopen nicht aktiv ist

public mixed FURLOPEN_ERROR = 400

REMOTECONTENT_ERROR

Fehler beim Abrüfen der Update-Informationen

public mixed REMOTECONTENT_ERROR = 402

REMOTEFILE_ERROR

Fehler beim Prüfung, ob Update-Server erreichbar ist

public mixed REMOTEFILE_ERROR = 401

Properties

$cacheModule

Cache Modul

protected string $cacheModule = ''
Tags
since
3.4

$cacheName

Cache name

protected string $cacheName = false

$canConnect

Verbindungen zu anderem Server möglich

protected bool $canConnect = false

$checkParams

Datenparameter

protected array<string|int, mixed> $checkParams = []

$data

Data array

protected array<string|int, mixed> $data

$passHash

SHA1 password hash

protected string $passHash = ''

$passLimit

Password delimiter

protected int $passLimit = 5

$remoteData

vom Server zurückgegebene Daten

protected string $remoteData = ''

$remotePort

Server port

protected string $remotePort = 443

$remoteServer

URL zum Server

protected string $remoteServer = ''

$remoteServerBase

Server string

protected string $remoteServerBase = 'https://api.pwnedpasswords.com/range/'

Methods

__construct()

Konstruktor

public __construct(string $pass) : void
Parameters
$pass : string
Return values
void

fetchRemoteData()

Ftech data from remote source

public fetchRemoteData() : bool
Return values
bool

getCacheName()

Cache-Name zurückgeben

public getCacheName([string $addName = '' ]) : string
Parameters
$addName : string = ''
Return values
string

getRemoteData()

Daten zurückgeben, die vom Server abgerufen wurden

public getRemoteData([string $key = false ]) : array<string|int, mixed>
Parameters
$key : string = false
Return values
array<string|int, mixed>

isPowned()

Checks password string against pwnedpasswords.com, transfers an 5-char SHA1 hash

public isPowned() : bool
Return values
bool

true if password is not in returned list or count is then 100

remoteAvailable()

Prüft, ob Update-Server verfügbar ist

protected remoteAvailable() : bool
Return values
bool

saveRemoteData()

Writes remote repository data to local storage

protected saveRemoteData() : bool
Return values
bool

Search results