C
C#2y ago
TheSnowOwl

❔ Base64 invalid string error while the input is valid

so im working with base64 that has to be decoded, i made a handy method for it so i can do it easily whenever i need. but it says the base64 string was invalid. i went to an online decoder and it decoded it to exactly what i needed it to be. so now im really confused :/ perhaps someone here could lend me a hand context provided in the attached screenshots
3 Replies
MODiX
MODiX2y ago
Angius#1586
REPL Result: Success
Convert.ToBase64String(Encoding.UTF8.GetBytes("Coordinate-MinecraftNotes.Models-MinecraftNoteApp, Version=1.0.0.0, Culture=neutral, PublicKey"))
Convert.ToBase64String(Encoding.UTF8.GetBytes("Coordinate-MinecraftNotes.Models-MinecraftNoteApp, Version=1.0.0.0, Culture=neutral, PublicKey"))
Result: string
Q29vcmRpbmF0ZS1NaW5lY3JhZnROb3Rlcy5Nb2RlbHMtTWluZWNyYWZ0Tm90ZUFwcCwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleQ==
Q29vcmRpbmF0ZS1NaW5lY3JhZnROb3Rlcy5Nb2RlbHMtTWluZWNyYWZ0Tm90ZUFwcCwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleQ==
Compile: 456.108ms | Execution: 34.883ms | React with ❌ to remove this embed.
Angius
Angius2y ago
Try this string
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server