Last active
September 16, 2019 17:34
-
-
Save SmartArray/cb78126642561cd8bded36747df555c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Convert endianness of hex input */ | |
String.prototype.rev = function () { return this.match(/.{1,2}/g).reverse().join("") } | |
"ae5a2f6f11d841e3351b49341cda6e9e097324c23d5a866a2fa0cfc566a402ef".rev() == | |
"ef02a466c5cfa02f6a865a3dc22473099e6eda1c34491b35e341d8116f2f5aae" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment