Skip to content

Instantly share code, notes, and snippets.

@josemmo
Created March 28, 2018 08:23
Show Gist options
  • Save josemmo/7a762acb8687a04fab0aea5f431da00d to your computer and use it in GitHub Desktop.
Save josemmo/7a762acb8687a04fab0aea5f431da00d to your computer and use it in GitHub Desktop.
// Convertir objeto en fingerprint
var fp = JSON.stringify(fp_sources);
var shaObj = new jsSHA('SHA-1', 'TEXT');
shaObj.update(fp);
fp = shaObj.getHash('HEX');
alert('Tu fingerprint es ' + fp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment