Skip to content

Instantly share code, notes, and snippets.

@shawjia
Created October 30, 2018 06:47
Show Gist options
  • Save shawjia/182087b90bd794b786c39391ecd70d78 to your computer and use it in GitHub Desktop.
Save shawjia/182087b90bd794b786c39391ecd70d78 to your computer and use it in GitHub Desktop.
且慢 接口签名方式
const ts = Date.now();
const sign = ts + sha256(Math.floor(1.01 * ts).toString()).toUpperCase().substring(0, 32);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment