-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add base64Encode/base64Decode filter #2145
Comments
Hey @jcamiel, I'd love to work on this, could I take this up? |
Yes @ashishajr of course. This could be maybe too big for only one commit / one PR. What I propose you is to split in multiple PRs or in one PR with multiple commits so it will be easier to review (multiple PRs is preferred as we can commit to master as soon as the PRs are validated):
|
Thanks @jcamiel, I'll start working on these. Could you please tell me where I'd have to implement the parsing for the new filters, I couldn't quite find that part in code. TODO List for myself, I'll keep coming back and updating it
|
Hi @ashishajr you can look at a similar filter htmlEscape, parsing is done in |
Discussed in #1921
Originally posted by eydun September 12, 2023
My login-request returns a token, which I am able to capture with jsonpath.
But before I can use this token for authorization in the second request, I need to base64 encode it. Is that possible?
Add
base64Encode
/base64Decode
filter.base64Encode
: input is in bytes, output is a stringbase64Decode
: input is a string, output is bytesNote: to be more useful, we need to have also a filter going from bytes to string for instance
utf8Encode
/utf8Decode
:utf8Encode
: input is a string, output is in bytesutf8Decode
: input is in bytes, output is a string? Do we need a
strEncode "encoding"
/strDecode "encoding"
filter with arbitrary encoding ? LikestrEncode "gb-2317"
The text was updated successfully, but these errors were encountered: