Migration
This commit is contained in:
parent
8493b77f47
commit
0d9a8069e7
BIN
PasswordGen.exe
Normal file
BIN
PasswordGen.exe
Normal file
Binary file not shown.
20
PasswordGenerator.ps1
Normal file
20
PasswordGenerator.ps1
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Arrays definition
|
||||
$minuscule = @('alpha','bravo','charlie','delta','echo','foxtrot','golf','hotel','india','juliette','kilo','lima','mike','november','oscar','papa','quebec','romeo','sierra','tango','uniform','victor','whisky','yankee','xray','zulu')
|
||||
$majuscule = @('ALPHA','BRAVO','CHARLIE','DELTA','ECHO','FOXTROT','GOLF','HOTEL','INDIA','JULIETTE','KILO','LIMA','MIKE','NOVEMBER','OSCAR','PAPA','QUEBEC','ROMEO','SIERRA','TANGO','UNIFORM','VICTOR','WHISKY','YANKEE','XRAY','ZULU')
|
||||
$symbol = @('@','+','-','&')
|
||||
|
||||
# To repeat permanently
|
||||
$boucle = 0
|
||||
|
||||
# Password generation
|
||||
while($boucle -ne 1)
|
||||
{
|
||||
# Select random object
|
||||
$min = Get-Random -InputObject $minuscule -Count 1
|
||||
$maj = Get-Random -InputObject $majuscule -Count 1
|
||||
$num = Get-Random -Maximum 99
|
||||
$sym = Get-Random -InputObject $symbol -Count 1
|
||||
|
||||
Write-Host "$min$maj$sym$num" -ForegroundColor Green
|
||||
pause
|
||||
}
|
|
@ -1,2 +1,8 @@
|
|||
# PasswordGenerator
|
||||
# Générateur de mot de passe basé sur l'alphabet de l'OTAN
|
||||
|
||||

|
||||

|
||||
|
||||
Ce générateur de mot de passe, basé sur l'alphabet de l'OTAN, utilise des mots de cet alphabet et fonctionne de la manière suivante :
|
||||
|
||||
{Mot minuscule}{Mot majuscule}{Caractère spécial}{nombre compris entre 0 et 99}.
|
||||
|
|
Loading…
Reference in New Issue
Block a user