Last active
July 27, 2019 10:00
-
-
Save spencerwooo/b402b30b94f518b6dc50f89d79ad213b to your computer and use it in GitHub Desktop.
Medium Code Highlights
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
const SHA256 = require('crypto-js/sha256') // 在哈希算法里面用到了 SHA256 | |
const BigInteger = require('jsbn').BigInteger // 整个认证算法都需要大整数的支持 | |
export function generate(seed, currentCourseId, rynmParams) { | |
let credentials = {} | |
... // Complicated algorithm | |
return credentials | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment