title: Spring Cloud Config Encryption API ignores special characters at the end
body: <p>We have externalised our application config using Spring cloud config. We also use the Encryption API to encrypt the plain text passwords before they go in yaml property file.  </p>
  
  <p>I am struggling with encrypting password for downstream system which has special character at the end. Somehow that’s been ignored by cloud config encryption API. When you decrypt the cipher back using decryption API you get the plain text back without the special character at the end.</p>
  
  <p>I am using curl to invoke the API - </p>
  
  <pre><code>curl 10.102.82.1:11901/encrypt -d AXIzFDH4XZA=  
  </code></pre>
  
  <p>for some reason special characters in middle of the plain text works fine, but if you have it at the end then its ignored. Probably this password is already hashed, but I am still curious to find out how to deal with this.</p>