Last active
June 3, 2022 02:51
-
-
Save rido-min/0fbba66c8fd312632fc6523ab1503701 to your computer and use it in GitHub Desktop.
ComputeDeviceKey
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
internal static string ComputeDeviceKey(string masterKey, string deviceId) => | |
Convert.ToBase64String(new System.Security.Cryptography.HMACSHA256(Convert.FromBase64String(masterKey)).ComputeHash(System.Text.Encoding.UTF8.GetBytes(deviceId))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment