Skip to content

Instantly share code, notes, and snippets.

@zgorizzo69
Created November 13, 2018 15:09
Show Gist options
  • Save zgorizzo69/d127e07c10c8bfe43bcb62bbac2cb5d6 to your computer and use it in GitHub Desktop.
Save zgorizzo69/d127e07c10c8bfe43bcb62bbac2cb5d6 to your computer and use it in GitHub Desktop.
var CryptoJS = require("crypto-js");
const zonefile = '$ORIGIN jude.id\n$TTL 3600\n_https._tcp URI 10 1 \"https://raw.githubusercontent.com/jcnelson/profile/master/jude.id\"\n_https._tcp URI 10 1 \"https://www.cs.princeton.edu/~jcnelson/jude.id\"\n';
const zonefilehash = cryptoJS.RIPEMD160(cryptoJS.SHA256(this.zonefile));
console.log(zonefilehash);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment