Private/Add-ADFSTkEntityHash.ps1
function Add-ADFSTkEntityHash { param ( [Parameter(Mandatory=$true, Position=0)] $EntityID, [Parameter(Mandatory=$false, Position=1)] $spHash = $null ) if (![string]::IsNullOrEmpty($SP)) { if ([string]::IsNullOrEmpty($spHash)) { $spHash = [System.BitConverter]::ToString($md5.ComputeHash($utf8.GetBytes($sp))) } $SPHashList.$EntityID = $spHash $SPHashList | Export-Clixml $SPHashFile } } |