text: let encryptBtn = document.getElementById("selfEncryption");
  let decryptBtn = document.getElementById("decryptBtn");
  
  encryptBtn.addEventListener("click", function () {
      console.log("SEND");
      var inputString = document.getElementById("inputString").value;
      var encryptionNormal = document.getElementById("encryptionNormal").checked;
      var changeVowels = document.getElementById("changeVowels").checked;
      var numberOperation = document.getElementById("numberOperation").checked;
      var numberOperationvalue = document.getElementById("numberOperationvalue").value;
      var letterValue = document.getElementById("letterValue").value;
   
      fetch("http://127.0.0.1:8000/selfalgo", {
          method: "POST",
          body: JSON.stringify({
              "inputString": inputString,
              "encryptionNormal": encryptionNormal,
              "changeVowels": changeVowels,
              "numberOperation": numberOperation,
              "numberOperationvalue": numberOperationvalue,
              "letterValue": letterValue,
          }),
          headers: {
              'Accept': 'application/json',
              'Content-Type': 'application/json'
          }
      }).then(function (response) {
          return response.text();
  
      }).then(function (data) {
          // enc_out.value = data;
          mydata = data.split(",")
  
          document.getElementById("keyString").value=mydata[0]
          document.getElementById("hashedString").value=mydata[1]
       
      });
  });
  
  
  decryptBtn.addEventListener("click", function () {
  
      var encryptedString = document.getElementById("encryptedString").value;
      var inputkey = document.getElementById("inputkey").value;
   
      fetch("http://127.0.0.1:8000/selfalgodec", {
          method: "POST",
          body: JSON.stringify({
              "encryptedString": encryptedString,
              "inputkey": inputkey,
          }),
          headers: {
              'Accept': 'application/json',
              'Content-Type': 'application/json'
          }
      }).then(function (response) {
          return response.text();
  
      }).then(function (data) {
          document.getElementById("decryptedStringValue").value=data;
      });
  })