Encrypt id in route

Hello ,
I would like to encrypt and decrypt my ids in my route.
So I use ```

It works fine but I have specials characters in the hash I get.
For example : *86ba308c226ae561bc573a79de6ca9ea306dce2226c4bdd500421381f4bfae6bkrqSc7dioccb9yKCVZIKkCtVs/RlqToiQS8zYNc6ew4=*

So how is there any algorithm that can remove / or = in my hash ?

You probably want to urlencode/urldecode that data

Allright @ocramius, I will try it and keep you posted.
Thank you