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