dev-master
9999999-dev https://github.com/27cm/password-generatorPHP library for generating easy to remember but hard to guess passwords
MIT
The Requires
- php >=5.6.0
- paragonie/random_compat ^2.0
The Development Requires
password xkcd
PHP library for generating easy to remember but hard to guess passwords
A flexible and scriptable password generator which generates strong passphrases, inspired by XKCD Comic 936. Generated passwords easy to remember, but hard to quess passwords., (*1)
With Composer:, (*3)
$ composer require 27cm/password-generator
Library generates phrases from frequently used words:, (*4)
Generate password with default length (4 words) and default separator (space)., (*5)
use TwentySeven\Password\Generator; use TwentySeven\Password\WordList; echo Generator::generateEn(); // => "throat fast only idea" echo Generator::generateDe(); // => "laut welt ganze liter" echo Generator::generateRu(); // => "тоже металл пора подача" echo Generator::generateRuTranslit(); // => "kater nekiy zabrat dazhe" echo TwentySeven\Password\Generator::generateEn(5, '-'); // => "ritual-error-raise-arab-tail" $lists = [ new WordList\En(), new WordList\RuTranslit() ]; echo Generator::generate($lists, 5, '-'); // => "idea-dovod-critic-sever-happy"
List of 2048 most frequently used English words., (*6)
Class | Comment | Word lenghth | Example |
---|---|---|---|
WordList\En | all words | 4-6 | have, that |
WordList\En\Nouns | nouns | 4-6 | time, year |
WordList\En\Verbs | verbs | 4-6 | have, would |
WordList\En\Adjectives | adjectives | 4-8 | other, good |
List of 2048 most frequently used german words (source). Words with diacritic letters (ä, ö, ü) and eszett (ß) excluded., (*7)
Class | Comment | Word lenghth | Example |
---|---|---|---|
WordList\De | all words | 4-6 | sich, nicht |
Lists consist of 2048 most frequently used Russain words (source)., (*8)
Class | Comment | Word lenghth | Example |
---|---|---|---|
WordList\Ru | all words | 4-6 | быть, этот |
WordList\Ru\Nouns | nouns | 4-8 | человек, время |
WordList\Ru\Verbs | verbs | 4-8 | быть, мочь |
WordList\Ru\Adjectives | adjectives | 4-8 | новый, большой |
List of 2048 transliterated most frequently used Russain words (source). "Hard" to transliterate letters (ь, ъ) excluded., (*9)
Class | Comment | Word lenghth | Example |
---|---|---|---|
WordList\RuTranslit | all words | 4-6 | chto, etot |
WordList\RuTranslit\Nouns | nouns | 4-8 | chelovek, vremya |
WordList\RuTranslit\Verbs | verbs | 4-8 | moch, skazat |
WordList\RuTranslit\Adjectives | adjectives | 4-8 | novyy, bolshoy |
Library uses CSPRNG for random number generation., (*10)
PHP library for generating easy to remember but hard to guess passwords
MIT
password xkcd