Merge pull request #13 from pldg/patch-1

Add prompt to exit the script
This commit is contained in:
Michael Pound 2019-03-18 10:04:05 +00:00 committed by GitHub
commit bc32504aa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
$string = Read-Host -Prompt 'Password to check'
$string = Read-Host -Prompt 'Password to check'
$bytes = [System.Text.Encoding]::UTF8.GetBytes($string)
$sha1 = New-Object System.Security.Cryptography.SHA1CryptoServiceProvider
$data = $sha1.ComputeHash($bytes)
@ -20,3 +20,5 @@ while (($line = $reader.ReadLine()) -ne $null) {
}
}
if ($found -eq 0) { Write-Host "That password was not found." }
Read-Host -Prompt "Press Enter to exit"