Skip to content

Instantly share code, notes, and snippets.

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 gabriel-munteanu/f5e2c65bdce73f385578d48af8ca64cc to your computer and use it in GitHub Desktop.
Save gabriel-munteanu/f5e2c65bdce73f385578d48af8ca64cc to your computer and use it in GitHub Desktop.
JavaScript for converting hexbytes in usable signature
let x='8d76008d45b8897db8894424088b45d48944'.toUpperCase(); let res= ''; for(let i=0; i< x.length; i=i+2) { res += '\\x'+x[i]+x[i+1];} console.log(res);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment