title: Send Encryption Password To LDAP in Java
body: <p>I have a problem and I have no idea how to solve it.</p>
  
  <p>I load an encrypted password (SSHA) from a text file and I need add a user with this password from the source code in Java. </p>
  
  <p>Example from file:
  e1NTSEF9Ukd6ZEZyanZBZlJGMGs3eGFDOGZxQ3U3QlozcUZXRGJoeWIyS0E9PQ==</p>
  
  <p>Real password: 123</p>
  
  <p>Example code not work as I want:</p>
  
  <pre><code>String encryptedPSWD = "e1NTSEF9Ukd6ZEZyanZBZlJGMGs3eGFDOGZxQ3U3QlozcUZXRGJoeWIyS0E9PQ==";
  attributes.add(new BasicAttribute("userPassword","{SSHA}"+encryptedPSWD);
  </code></pre>
  
  <p>It not work, because we can send only real value password?
  And is the problem that this is one-sided encryption and LDAP will also not be able to decrypt it?</p>