fixes #63, #67, #68, and #71, among other issues
import { createHmac } from "crypto";
export function sha256(str, salt) {
return createHmac("sha256", salt).update(str).digest("hex");
}