Skip to content

Commit 0c3bd1f

Browse files
committed
Uses SecureSTring in Get-RandomPassword
1 parent b8b15d5 commit 0c3bd1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Get-RandomPassword.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function Get-RandomPassword
7777
}
7878

7979
$buffer | ForEach-Object { $password += "{0:X0}" -f $_ }
80-
return $password
80+
return ConvertTo-SecureString -AsPlainText $password -Force
8181
}
8282
finally
8383
{

0 commit comments

Comments
 (0)