Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
psrod
1.2.0
Public/Imported/Get-RandomSecret.ps1
Function
Get-RandomSecret
{
[Convert]
::
ToBase64String
(
(
1
..
64
|
ForEach-Object
{
[byte]
(
Get-Random
-Max
256
)
}
)
)
}