mirror of
https://github.com/imputnet/cobalt.git
synced 2026-01-02 04:51:20 +00:00
6 lines
141 B
JavaScript
6 lines
141 B
JavaScript
import { createHmac } from "crypto";
|
|
|
|
export function sha256(str, salt) {
|
|
return createHmac("sha256", salt).update(str).digest("hex");
|
|
}
|