JSFiddle - React, Tailwind, and code Playground

login with SHA3 (one-way hash)

by Christopher O

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js" integrity="sha512-E8QSvWZ0eCLGk4km3hxSsNmGWbLtSCSUcewDQPQWZF6pEU8GlT8a5fF32wOl1i8ftdMhssTrF/OhyGWwonTcXA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>


<!-- 
front: post username & p3 = CryptoJS.SHA3(username+password,{outputLength:512})

back: p = encrypt(username+p3)


Use with fetch and recaptcha:

https://documentation.formspark.io/examples/ajax.html#axios-with-botpoison 

-->

JavaScript

for(let i = 1;i<=20;i++){
  let myDiv = document.createElement("div");
  myDiv.innerHTML = "<p>"+CryptoJS.SHA3("Message2", {outputLength:512})+"</p>";
  document.body.appendChild(myDiv);
}