title: Command line Jasypt client encryption 'Operation not possible'
body: <p>I am using Jasypt to store our database passwords in our hibernate config file in non-clear-text format.</p>
  
  <p>Eg instead of </p>
  
  <pre><code>    &lt;property name="hibernate.connection.username"&gt;user1&lt;/property&gt;
      &lt;property name="hibernate.connection.password"&gt;password1&lt;/property&gt;
  </code></pre>
  
  <p>I want something like</p>
  
  <pre><code>    &lt;property name="hibernate.connection.username"&gt;user1&lt;/property&gt;
      &lt;property name="hibernate.connection.password"&gt;ENC(0HY4F73HFPQ85CN)&lt;/property&gt;
  </code></pre>
  
  <p>I am using the PBEWITHMD5ANDTRIPLEDES algorithm. I was reading up on it, and it seems that this may require installing a JCE, or a 'Jurisdiction Policy' extension. My question is, are these things already installed if I see this in my list of PBE Algorithms?</p>
  
  <p>I ran the listAlgorithms.bat script:</p>
  
  <pre><code>C:\dev\jasypt-1.9.1\bin&gt;listAlgorithms.bat
  
  DIGEST ALGORITHMS:   [MD2, MD5, SHA, SHA-256, SHA-384, SHA-512]
  
  PBE ALGORITHMS:      [PBEWITHMD5ANDDES, PBEWITHMD5ANDTRIPLEDES, PBEWITHSHA1ANDDESEDE, PBEWITHSHA1ANDRC2_40]
  </code></pre>
  
  <p>But when I try to encrypt my password, I get a very unhelpful error message:</p>
  
  <pre><code>C:\dev\jasypt-1.9.1\bin&gt;encrypt.bat input=etrading_rw_123 password=encryptionkey algorithm=PBEWITHMD5ANDTRIPLEDES
  
  ----ENVIRONMENT-----------------
  
  Runtime: Sun Microsystems Inc. Java HotSpot(TM) Client VM 20.14-b01
  
  
  
  ----ARGUMENTS-------------------
  
  algorithm: PBEWITHMD5ANDTRIPLEDES
  input: etrading_rw_123
  password: encryptionkey
  
  
  
  ----ERROR-----------------------
  
  Operation not possible (Bad input or parameters)
  </code></pre>
  
  <p>If I run the same script with algorithm=PBEWITHMD5ANDDES, it works fine. Does the list of 'supported algorithms' actually mean 'algorithms that would be supported if you enabled them' rather than 'algorithms that are good to go'?</p>
  
  <p>I am using Java version:</p>
  
  <pre><code>java version "1.6.0_17"
  Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
  Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
  </code></pre>