functions/security/internal/Get-Entropy.ps1
1 2 3 4 5 6 7 8 9 10 11 12 |
function Get-Entropy { $entropyFilePath = "$PSScriptRoot\.entropy" if (-not (Test-Path $entropyFilePath)) { $entropy = (New-Guid) -replace '-', '' Set-Content -Path $entropyFilePath -Value $entropy } else { $entropy = Get-Content -Path $entropyFilePath } $entropy } |