Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Base64 Decode any string in Apigee

Hi,

Is there any policy in Apigee which can decode base 64 string ? I checked Basic Authentication policy but seems it decodes only username and password. But this encoded string has some custom data. Only way i can think of is to use java script to decode this string. Is there any other way ?

Solved Solved
0 11 4,996
1 ACCEPTED SOLUTION

@nikhilchawla

Yes - JS is your best bet.

Keep in mind that not all base64 strings decode into strings. In general decoding a base64-encoded value will result in an array of bytes, which might represent a string, but might not.

View solution in original post

11 REPLIES 11