title: How to encrypt in javascript
body: <p>I want to use the same domain site for login authentication in the system I'm currently creating.</p>
  
  <p>I was able to confirm that the login information is correct using Ajax, and I'm using HTTPS communication.
  But no matter how much I use HTTPS, I don't want to send my password in plain text.
  I want to send it encrypted so that it can be compounded with .</p>
  
  <p>The system that verifies your login information is .NET, so you have to be able to compound there.</p>
  
  <p>I also don't know if it's common to encrypt passwords even when using HTTPS communication.</p>
  
  <p><strong>login.js</strong></p>
  
  <pre><code>var app = new Vue({
      el: "#app",  
      data: {      
          url: "https://********",
          user: "",
          password: ""
      },
      methods: {
          login: function () { 
  
              //I want to encrypt it here.
  
              axios.post(this.url, {
                  user: this.user,
                  password: this.password
              })
                  .then(function (response) {
                      // alert('OK');
                      // alert(response);
                      console.log(response);
                  })
                  .catch(function (error) {
                      alert('NO');
                      // alert(error);
                  });
          }
      }
  })
  </code></pre>