Files
Thomas Lynch 961585dca5 "helpers" -> "lib
god help anybody who gets serious merge conflicts from this
close #434
2022-04-12 04:37:52 +10:00

7 lines
217 B
JavaScript

'use strict';
const { ipHashSecret } = require(__dirname+'/../../configs/secrets.js')
, { createHash } = require('crypto');
module.exports = (ip) => createHash('sha256').update(ipHashSecret + ip).digest('base64');