[Reflection.Assembly]::LoadWithPartialName("System.Web") $pass=Read-Host 'Introducir contraseña para generar hash' "Hash MD5" [System.Web.Security.FormsAuthentication]::HashPasswordForStoringInConfigFile($pass, "MD5") "Hash SHA1" [System.Web.Security.FormsAuthentication]::HashPasswordForStoringInConfigFile($pass, "SHA1")
Contraseñas seguras con PowerShell: convertir en hash una contraseña (Web, Seguridad, PowerShell)
Except where otherwise noted, Jesusninoc by Jesús N. is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.