Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generating SailPoint IdentityNow Private API (v1) passwordHash
# IdentityNow Admin User
$adminUSR = [string]"Admin.User1".ToLower()
$adminPWDClear = 'IdentityNowAdminPasswordforAdminUser1'
# Generate the password hash
# Requires Get-Hash from PowerShell Community Extensions (PSCX) Module
# https://www.powershellgallery.com/packages/Pscx/3.2.2
$passwordHash = Get-Hash -Algorithm SHA256 -StringEncoding utf8 -InputObject ($($adminPWDClear) + (Get-Hash -Algorithm SHA256 -StringEncoding utf8 -InputObject ($adminUSR)).HashString.ToLower())
$adminPWD = $passwordHash.ToString().ToLower()
$adminPWD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment