encryption - Getting space for + sign in apex while reading value from URL -


we have requirement encrypting salesforce id value using crypto class method. crypto.encryptwithmanagediv('aes128', key, data);

but generates key contains + sign , when read value in apex space + sign.

we tried encodingutil.urldecode , encodingutil.urlencode. in case + sign getting converted %2b , again space in apex.

for ex -

encoded value in url gabh0fiek5l2m8wvktv+p4r5qlay2d9jz2bgsyq3mj1/9pummine6y5p6i3zridl

encoded value in apex

gabh0fiek5l2m8wvktv p4r5qlay2d9jz2bgsyq3mj1/9pummine6y5p6i3zridl

can please suggest how handle situation?

we can handle spaces replacing + sign . not sure, if throw error specific characters/case.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -