title: decrypt hashing password
body: <p>I have the following code to encrypt a password, but when I am trying to decode it, I don't get the expected result here is the code.</p>
  
  <pre><code>BASE64Encoder encoder = new BASE64Encoder();
  String afterhex=toSHA1("mypassword".getBytes());
  String encodedBytes = encoder.encodeBuffer(afterhex.getBytes());
  
  public static String toSHA1(byte[] convertme) {
      MessageDigest md = null;
      try {
          md = MessageDigest.getInstance("SHA-1");
      } catch (NoSuchAlgorithmException e) {
          e.printStackTrace();
      }
      return new String(md.digest(convertme));
  }
  </code></pre>
  
  <p>For example if you tried to encode, jill you should get <code>LQBIF2TS0FSDYtGjaNmC2gl/klw=</code></p>
  
  <p>Any advice for restoring it back :)</p>