Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
code in this time

Daniel Voloshyn MorganaUzhgorod

👨‍💻
code in this time
View GitHub Profile
View sign_verify.js
const crypto = require("crypto");
const sign = (data, key, method, route) => {
var md = crypto.createHash("sha1");
md.update(
JSON.stringify(data)
.concat(key.toString())
.concat(method.toString())
.concat(route.toString())
);
View sign_verify.js
const crypto = require("crypto");
const sign = (data, key, method, route) => {
var md = crypto.createHash("sha1");
md.update(
JSON.stringify(data)
.concat(key.toString())
.concat(method.toString())
.concat(route.toString())
);
View signExample.js
const crypto = require("crypto");
const sign = (data, key, method, route) => {
var md = crypto.createHash("sha1");
md.update(
JSON.stringify(data)
.concat(key.toString())
.concat(method.toString())
.concat(route.toString())
);