title: Using as3Crypto to encrypt/decrypt with only URL Query save chars
body: <p>I was using as3Crypto with no probs 
  <a href="http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/" rel="nofollow">http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/</a></p>
  
  <p>but it produces a string which includes equal (and probably other URL Query unsafe characters). Is there a way to encrypt like this?</p>
  
  <p>Current code below:</p>
  
  <pre><code>public function encrypt(txt:String = ''):String
  {
      var data:ByteArray = Hex.toArray(Hex.fromString(txt));      
      var pad:IPad = new PKCS5;
      var mode:ICipher = Crypto.getCipher(type, key, pad);
      pad.setBlockSize(mode.getBlockSize());
      mode.encrypt(data);
      return ''+Base64.encodeByteArray(data);
  }
  </code></pre>