Skip to content

Instantly share code, notes, and snippets.

@NicolaiSoeborg
Created December 30, 2019 16:34
Show Gist options
  • Save NicolaiSoeborg/098c099084590d9ad71808ed969f2a12 to your computer and use it in GitHub Desktop.
Save NicolaiSoeborg/098c099084590d9ad71808ed969f2a12 to your computer and use it in GitHub Desktop.
pbKey32 = AesKdf(
data: sha256("123456:133337:987654"),
seed: TransformationKey, // 32 CryptoRandom bytes
rounds: 10.000
)
pbSecret = OtpUtil.DecryptData(
encryptedSecret,
pbKey32,
FromBase64String(m_otpInfo.EncryptionIV)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment