testing signer alg
This commit is contained in:
parent
50057a61a8
commit
2a7584e6ef
|
|
@ -4,7 +4,7 @@ import { readFileSync } from "fs";
|
||||||
const key = readFileSync(process.cwd() + "/src/lib/PrivateKey.pem");
|
const key = readFileSync(process.cwd() + "/src/lib/PrivateKey.pem");
|
||||||
|
|
||||||
export default function (input) {
|
export default function (input) {
|
||||||
let sha1 = crypto.createHash("sha1");
|
let sha1 = crypto.createHash("RSA-SHA1");
|
||||||
sha1.update(input);
|
sha1.update(input);
|
||||||
|
|
||||||
let hash = sha1.digest();
|
let hash = sha1.digest();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue