Page MenuHomeWickedGov Phorge

CommonPasswords.php
No OneTemporary

Size
465 B
Referenced Files
None
Subscribers
None

CommonPasswords.php

<?php
namespace Wikimedia\CommonPasswords;
class CommonPasswords {
/**
* @internal
* @return array
*/
public static function getData() {
static $data = null;
if ( $data === null ) {
$data = require __DIR__ . '/common.php';
}
return $data;
}
/**
* @param string $password Password to check if it's considered common
* @return bool
*/
public static function isCommon( $password ) {
return isset( self::getData()[ $password ] );
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 10:05 (1 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
54/80/e9cfb47faca6c57cc34e8cd00ef5
Default Alt Text
CommonPasswords.php (465 B)

Event Timeline