Skip to content

Instantly share code, notes, and snippets.

@Waxolunist
Created January 21, 2020 20:22
Show Gist options
  • Save Waxolunist/9814227dfc19d5fb8add28bc4c71a076 to your computer and use it in GitHub Desktop.
Save Waxolunist/9814227dfc19d5fb8add28bc4c71a076 to your computer and use it in GitHub Desktop.
crypto.subtle.digest('SHA-1', new TextEncoder().encode('sfdfsdfdsfdfsdfdsfsdfdsfssfdsfds')).then(b => btoa(String.fromCharCode(...new Uint8Array(b)))).then(console.log);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment