[GH-ISSUE #1934] Invalid Base64 String #1925

Closed
opened 2026-03-03 19:55:30 +03:00 by kerem · 3 comments
Owner

Originally created by @fardage on GitHub (Feb 12, 2024).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1934

Originally assigned to: @NghiaTranUIT on GitHub.

Description

Trying to Base64 decode the following string results in "Invalid Base64 String"

eyJzY2hlbWEiOiJpZ2x1OmNvbS5zbm93cGxvd2FuYWx5dGljcy5zbm93cGxvd1wvdW5zdHJ1Y3RfZXZlbnRcL2pzb25zY2hlbWFcLzEtMC0wIiwiZGF0YSI6eyJzY2hlbWEiOiJpZ2x1OmNvbS5zbm93cGxvd2FuYWx5dGljcy5tb2JpbGVcL2FwcGxpY2F0aW9uX2luc3RhbGxcL2pzb25zY2hlbWFcLzEtMC0wIiwiZGF0YSI6e319fQ

However the string seems to be fine and can be decoded via https://www.base64decode.org/

Steps to Reproduce

  1. Decode the string in the Request Body Window with right click

image

Current Behavior

  • "Invalid Base64 String"

Expected Behavior

{"schema":"iglu:com.snowplowanalytics.snowplow\/unstruct_event\/jsonschema\/1-0-0","data":{"schema":"iglu:com.snowplowanalytics.mobile\/application_install\/jsonschema\/1-0-0","data":{}}}

Environment

  • App version: Proxyman 4.16
  • macOS version: Sonoma 14.2.1
Originally created by @fardage on GitHub (Feb 12, 2024). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1934 Originally assigned to: @NghiaTranUIT on GitHub. ## Description Trying to Base64 decode the following string results in "Invalid Base64 String" ``` eyJzY2hlbWEiOiJpZ2x1OmNvbS5zbm93cGxvd2FuYWx5dGljcy5zbm93cGxvd1wvdW5zdHJ1Y3RfZXZlbnRcL2pzb25zY2hlbWFcLzEtMC0wIiwiZGF0YSI6eyJzY2hlbWEiOiJpZ2x1OmNvbS5zbm93cGxvd2FuYWx5dGljcy5tb2JpbGVcL2FwcGxpY2F0aW9uX2luc3RhbGxcL2pzb25zY2hlbWFcLzEtMC0wIiwiZGF0YSI6e319fQ ``` However the string seems to be fine and can be decoded via https://www.base64decode.org/ ## Steps to Reproduce 1. Decode the string in the Request Body Window with right click ![image](https://github.com/ProxymanApp/Proxyman/assets/48010396/4ae9b746-7947-434f-902b-6ea29e1e1af7) ## Current Behavior - "Invalid Base64 String" ## Expected Behavior - Decode String like https://www.base64decode.org/ does - Should result in: ``` {"schema":"iglu:com.snowplowanalytics.snowplow\/unstruct_event\/jsonschema\/1-0-0","data":{"schema":"iglu:com.snowplowanalytics.mobile\/application_install\/jsonschema\/1-0-0","data":{}}} ``` ## Environment - App version: Proxyman 4.16 - macOS version: Sonoma 14.2.1
kerem 2026-03-03 19:55:30 +03:00
Author
Owner

@NghiaTranUIT commented on GitHub (Feb 15, 2024):

Thanks, let me investigate and fix it asap 👍

<!-- gh-comment-id:1945351443 --> @NghiaTranUIT commented on GitHub (Feb 15, 2024): Thanks, let me investigate and fix it asap 👍
Author
Owner

@NghiaTranUIT commented on GitHub (Feb 15, 2024):

@fardage it's fixed: https://download.proxyman.io/beta/Proxyman_5.0.0_Fix_base64_from_Java.dmg

The problem is your Base64 string is encoded by a Java-implementation algo, so it doesn't have suffix padding =. The Beta fixes it 👍

<!-- gh-comment-id:1945729139 --> @NghiaTranUIT commented on GitHub (Feb 15, 2024): @fardage it's fixed: https://download.proxyman.io/beta/Proxyman_5.0.0_Fix_base64_from_Java.dmg The problem is your Base64 string is encoded by a Java-implementation algo, so it doesn't have suffix padding `=`. The Beta fixes it 👍
Author
Owner

@fardage commented on GitHub (Feb 16, 2024):

Great! I can confirm that it works with the beta. Thank you for fixing it so quickly!

<!-- gh-comment-id:1947900124 --> @fardage commented on GitHub (Feb 16, 2024): Great! I can confirm that it works with the beta. Thank you for fixing it so quickly!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#1925
No description provided.