I currently have some (PowerShell) code that does this -
$password = [System.Web.Security.Membership]::GeneratePassword(128,0)
I realise that strings are generally considered insecure. So I am curious whether there is a way to generate a random password directly into a secure string?
(for a little background, I am trying to find a solution to this post)