Password Strength
vital dupliquer stephan élégance
chansons raffinage marquis reprenait
sénatoriales théo haricot tibet
lettonie appelées grecs bourse
surestimer châle bombardier posant
perle réaffirmé financement scarabée
scandaleux maison stupéfier échéances
karl galaxie prudents
scinder réverbération programme astrakan
connue quoi recomposition poissonnier
toits ernest onde fanatisme
avenant caméra culpabilité orgueil
piloter anarchiste négatif maldonne
exaspération corpus vies israël
culte invite dégringoler manifestement
salissure translucide alcool rais
constituant cultivateur pompier spontanément
tant réel estimait cornu
export insulaire types nazi
dessous-de-table pures mobiliser incitation
raie consul skipper protubérance
ogresse nourrir maghrébins jane
interstice augmente scinder cégétistes
préparation collective commente essayons
dégoût suites droguer réjouit
réunit blaguer couenne lendemains
automne renseigner saumon quatre
foyer attribut choper torréfacteur
raisonné wales pétrolières dédaigneusement
populaires aéronautiques sombre dissimuler
néerlandaises lune abus messie
louper aumônier hacher robot
raisonnable fleuron amendements
formels surveille répéter convaincus
admettent bahreïn emblaver meurent
mutuel remplissage qualifiés jeun
paralysé raisonner expansif alpiniste
vestibule âpre rajk détestable
philadelphie malheureux spécialisés fripon
guerres prusse fable remplit
anciens cycle raisonnement inventif
planète distances imprévoyant jacqueline
pressant bishop richter chargée
contravention imprévoyant anthropologue cabinets
patiemment levée certainement hôte
compatibles procédure supporters laisser-aller
positions carnivore sabir beige
morceau intentionnel lisière métiers
porc impatience délaissé modernité
déplacé navigateur confirmé stylo
compromise tondre spielberg aversion
copieur réuni arrondissement finie
antipathie sage-femme casablanca incessant
transcrire silicium interpellation valéry
médicales orientée azoteux pratiques
courte gaëlle amiral interminable
dépêche provoqués souriant verne
nettoyé jaunir abstrait lingual
discréditer verre fructiculture prescriptions
proie phases inventée appelle
favori dominant inspire rassurés
frontière folklorique axée germe
dérive reprenant donation mal
course hurler ascète alimentaires
troc limites innovation complète
anonymement beurre examens transit
renfort manie tchèque conçu
dégueu nazisme condamnant convaincre
fond concorde habilement magnificence
rangées catéchisme distant impartial
ai rez-de-chaussée constamment latino
alouette peaufiner formalités barry
barcarolle impétueux combe blake
séquence sanction envisagé nul
catastrophes stérile délicieux seau
noté annales fascia vierges
campagnard fixer gaumont banquiers
rotterdam illustre verdure amnistie
guyane vents mâle enregistrer
intéressé mario eu congé
déroulées voit dirigeants assommant
meringue avantages raturer biologie
caché dallas comportements émigrants
vivre prières dépit disparaissent
locales pièces transport quantité
city restrictives erreurs
achètent veau proposant sanguine
portrait trois mâts agacement triumvirat
soutiens assistera voulait sang
abats effigie rejoignent dévot
diplomatique signant immunisé portes
acclimatation gel touffu encoignure
scott parkings manœuvre égratignure
final sinistre trucider canne
recevoir salopard déclive gouvernementale
gupta développe brunissage singes
courtois barrière biélorussie actrice
mélange virgin moite honnêtement
avais œsophage coordinateur cuillerée
hypermarchés baklava costa moldavie
<?php
/**
* @file generer_password_xkcd_com.php
* @brief Ce script va générer un mot de passe tel que vu sur le site xkcd.com.
*
* @author hughes monget
* @see http://monget.com/
*/
echo '<p><a href="http://xkcd.com/936/" target="_blank">Password Strength</a></p>';
$str_chemin = dirname(__FILE__).DIRECTORY_SEPARATOR.'liste_francais.txt';
$arr_str_mot = file($str_chemin);
$arr_str_mot = array_map('trim', $arr_str_mot);
$arr_str_mot = array_filter($arr_str_mot);
$arr_str_mot = array_map('strtolower', $arr_str_mot);
$arr_str_mot = array_unique($arr_str_mot);
echo '<pre>';
for ($ii = 0; $ii < 100; $ii++)
{
$arr_tmp = array();
for ($jj = 0; $jj < 4; $jj++)
{
$arr_tmp[] = $arr_str_mot[mt_rand() % count($arr_str_mot)];
}
echo implode(' ', $arr_tmp).PHP_EOL;
}
echo '<hr />';
highlight_file(__FILE__);