title: openssl enc -base64 -d does not decode strings after a certain length
body: <p>I have a simple bash script that does encoding / decoding for strings using base64. The script is:</p>
  
  <pre><code>#!/bin/bash
  echo "encode or decode ?"
  read input
  
  if [ "$input" == "encode" ]
  then
  
  echo Please, enter your secret message 
  read message
  echo "The cipher representing your message is"
  echo -n $message | openssl enc -base64
  
  
  else
  
  echo "Please enter your cipher"
  read cipher
  echo "Your secret message is"
  echo  $cipher | openssl enc -base64 -d
  echo ""
  
  
  fi
  </code></pre>
  
  <p>The script works fine, as long as the length of the string being encoded is 49 characters at max. Strings longer than 49 characters can not be decoded correctly. Any idea what might be wrong in my script? </p>
  
  <p>Many thanks! </p>