testing signer alg

This commit is contained in:
I-Have-An-Issue 2022-10-14 19:05:54 -04:00
parent 50057a61a8
commit 2a7584e6ef
No known key found for this signature in database
GPG Key ID: E55435DEA0825091
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import { readFileSync } from "fs";
const key = readFileSync(process.cwd() + "/src/lib/PrivateKey.pem");
export default function (input) {
let sha1 = crypto.createHash("sha1");
let sha1 = crypto.createHash("RSA-SHA1");
sha1.update(input);
let hash = sha1.digest();