Skip to content

Instantly share code, notes, and snippets.

@spencerwooo
Last active July 27, 2019 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spencerwooo/b402b30b94f518b6dc50f89d79ad213b to your computer and use it in GitHub Desktop.
Save spencerwooo/b402b30b94f518b6dc50f89d79ad213b to your computer and use it in GitHub Desktop.
Medium Code Highlights
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