Created
September 17, 2018 22:25
-
-
Save darrenjrobinson/d6452e3827df6b8413068c74fdee0542 to your computer and use it in GitHub Desktop.
Generating SailPoint IdentityNow Private API (v1) passwordHash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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