“Senha Encryptin PowerShell” Respostas de código

Senha Encryptin PowerShell

(get-credential).Password | ConvertFrom-SecureString -key (get-content C:\passwords\aes.key) | set-content "C:\Passwords\password.txt"
Careful Chamois

Senha Encryptin PowerShell

$Key = New-Object Byte[] 32
[Security.Cryptography.RNGCryptoServiceProvider]::Create().GetBytes($Key)
$Key | out-file C:\passwords\aes.key
Careful Chamois

Senha Encryptin PowerShell

$password = Get-Content C:\Passwords\password.txt | ConvertTo-SecureString -Key (Get-Content C:\Passwords\aes.key)
$credential = New-Object System.Management.Automation.PsCredential("Luke",$password)
Careful Chamois

Respostas semelhantes a “Senha Encryptin PowerShell”

Perguntas semelhantes a “Senha Encryptin PowerShell”

Procure respostas de código populares por idioma

Procurar outros idiomas de código