Skip to content

Instantly share code, notes, and snippets.

@zgorizzo69
Created November 13, 2018 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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