Generate Cryptographic Hashes in your Browser Side Javascript

Using the API 🛠

async function fetchHash(str, algo, encoding) {
const reqUrl = "https://hashable-server.herokuapp.com";
await fetch(`${reqUrl}/api/hash?algorithm=${algo}&str=${str}&encoding=${encoding}`)
.then(res => res.text())
.then(data => {
console.log(data);
// do somehting here
});
}
fetchHash("Hello World", "md5", "hex");
  • MD5
  • SHA512
  • SHA256
  • HEX
  • BASE64
  • BASE64URL

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Haneen Mahdin

Haneen Mahdin

Everything from Tech ‒ Design — Health — haneenmahd.github.io