Below is a calculation example for the SHA2-256 digest password, if the user sets the 128-bit password as 0123456789ABCDEF67452301EFCDAB89.
- Set the password into 32-bit alignment: 0x01234567, 0x89ABCDEF, 0x67452301, 0xEFCDAB89
- Reverse the password endianness as SHA2-256 is calculated in byte: 0x67452301, 0xEFCDAB89, 0x01234567, 0x89ABCDEF
- Combine the 4 reversed 32-bit password as one string: 67452301EFCDAB890123456789ABCDEF
- Calculate the SHA2-256 value (select HEX as the input encoding): 8420347FCB0F019E15564A0F65B8E197ECDF9F92D1ECA2BBAB1B8CB314C763DA (SHA256 online tool)
- Break up the SHA2-256 value into 8 32-bit words: 0x8420347F, 0xCB0F019E, 0x15564A0F, 0x65B8E197, 0xECDF9F92, 0xD1ECA2BB, 0xAB1B8CB3, 0x14C763DA
- Reverse the output endianness: 0x7F342084, 0x9E010FCB, 0x0F4A5615, 0x97E1B865, 0x929FDFEC, 0xBBA2ECD1, 0xB38C1BAB, 0xDA63C714
- Store the 8 32-bit passwords in the PWDDEBUGLOCK.DIGEST field in order