H
H
hiddenproger2020-07-04 12:57:04
Character encoding
hiddenproger, 2020-07-04 12:57:04

How to fix characters when decoding base64 string?

i have encoded string:

eyJ1YWN1aWNJbmZvIjp8Im2vdmVzIjoiZjFjNCBkNWM1IGYzYjMgYzRkNCBiM3QzIiwicG0zaXRpb35iOiJyMWJxMWIxci0wcHA1cC9ybmsycG5vM16wMy91TjMvNVExUC0QUFBQMVBQMS0SMUIxS1IxUiBiIEtRIC1gMiAxMSIsInN1YXJ1UG0zaXRpb35iOiJyMWJxMWIxci0wcHA1cC9ybjNwbi9za4AzLzROMy92UTFQL2BQUFAxUFAxL2IxQjFLQjFSIHcgS2EgLSAwIDEyIiwicHJvYmxlbV0pZCI7MSwicHJldm2vdmUiOiJkNmQ2IiwicXVhbGl1eSI7NC5wMTk3MSwiYWN1aXZlIjpmYWxzZSwicmVwbGFjZWRfYnkiOjMzNzA1LCJmcm0tX4VzZXJfZ3FtZV02c3VyX3lkIjowLCJpc20kZWZlbnNpdmUiOmZhbHNlLCJyZXBsYWNlcyI7LTEsInByb3JsZW2fdHlwZSI7MCwibnVtX3NvbW2lbnRzX3FsbCI7IjYxIiwibnVtX3NvbW2lbnRzIjoiMjciLCJyYXRpbmdzIjpbeyJyYXRpbmciOjIzMzMsIm62bWJlcl0kb36lIjoxMjMsIm62bWJlcl0jb4JyZWN1Ijo2NiwicmF1aW6nX4N2YnR6cGUiOjAsInByb3JsZW2fc3V1X36hbWUiOiJCbGl1eiIsImF3X4NlY30uZHMiOjIyLjcsImF3X362bV0tb4ZlcyI7bnVsbH1seyJyYXRpbmciOjE5MDEuMiwibnVtYmVyX3RvbmUiOjE4NCwibnVtYmVyX3NvcnJlY4QiOjY3LCJyYXRpbmdfc4VidHlwZSI7MSwicHJvYmxlbV0zZXRfbmFtZSI7IlN1YW6kYXJkIiwiYXZfc3Vjb36kcyI7ODEsImF3X362bV0tb4ZlcyI7bnVsbH1seyJyYXRpbmciOjE5MDEuMiwibnVtYmVyX3RvbmUiOjAsIm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1sInByb3JsZW2fcmF1aW6nX4R6cGUiOjEsInByb3JsZW2fc3V1X3lkIjoxLCJudW2iZXJzIjp8fSwicmF1aW6nX3FkanVzdG2lbnRfdHlwZSI7MH20

if I try to decrypt it through services like https://www.base64decode.org/ , then in general the parsing passes, but unreadable characters appear, informational garbage, the json itself is incorrect, how to decrypt it correctly?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
hiddenproger, 2020-07-04
@hiddenproger

as it turned out, this line has extra characters, added on purpose so that the parsing does not work correctly, after cleaning, the correct string is obtained and the decryption is successful

K
Karpion, 2020-07-04
@Karpion

Perhaps this encoding is not base64, but some other? Where did she even come from?

C
CityCat4, 2020-07-04
@CityCat4

Add one, two, or three characters = (equal sign) to the end of the line

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question