Able to create users using SHA256 Hash but unable to authenticate

Hi all,

I am using SHA 256 algorithm to encrypt the password hash (with pre-fix salt) and able to create the user in Okta with that imported hash but after creation, I am unable to authenticate the same user by providing the same password. Kindly help!!!

        var hash = new Hash()
        {
            Algorithm = "SHA-256",
            Salt = "nco7crN1HUdGzA0ezrgTjA==", // Base64 encoded
            SaltOrder = "PREFIX",
            Value = "66mLxWwyh/YX59xjLGTQpiv0HnH4/ii7Q8q4kMF/6zQ=" // Encoding.Unicode.GetBytes("P@ssword123") 
        };

Hello,

Since your question is related hashes and password imports, we recommend reposting it on Okta’s Community at: Okta Help Center (Lightning).

Okta’s teams in the Community are better equipped to provide the comprehensive support and guidance you need.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.