title: how to compare sha1 encripted password in Java?
body: <p>Let say i have encripted SHA1 password like this</p>
  
  <pre><code>String pass = "f6ce584e7b4ff5253eed4a2ea2b44247";
  </code></pre>
  
  <p>and i want make condition like this :</p>
  
  <pre><code> if (pass.equals("userinput")){
          System.out.println("success");
      }
  </code></pre>
  
  <p>please someone help me to make proper condition / function to compare those both value between user input and encripted password. Your help will be highly appreciated. thanks</p>