-
Notifications
You must be signed in to change notification settings - Fork 13
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
CryptographicException: Padding is invalid and cannot be removed #10
Comments
Your save isn't loading in Pokemon Quest on my Switch. Maybe something went wrong when dumping it |
Hi!
I'm on Ubuntu 16.04 with .NET Core 2.1 installed. The save file i'm trying to edit is the same file that i modified on Windows and it was successfully edited. I don't know what i'm doing wrong. |
@Acefkor Do you have your save file before and after you edited it that you could upload? And does the same save file that doesn't work with .NET Core on Linux work on Windows? |
@Thealexbarney here are both files files.zip |
@Acefkor Is that unmodified file directly dumped from a working save off your Switch? Just like Igor1201's save the encryption doesn't appear to be valid and the save won't load on my Switch. Somewhere in the middle of the save the encryption gets messed up |
@Thealexbarney yes, is directly from a working save. I'm going to try it again and see what happen 'cause like @Igor1201, i dumped the original file, modified it on Windows for the very first time and it works perfectly, and now that I want to modify it again on Linux (for the second time), it doesn't work but on Windows does. I'm going to test it again tomorrow. |
The fact you can still edit the file on Windows is really weird. I tried to edit mine on both W10 and macOS without success. @Thealexbarney I'm using latest Checkpoint (3.2.0) to dump them. I'll try a new dump after restarting the switch a couple of times to see if it changes something (I couldn't load the saves if I didn't restart it twice: again, weird behavior). |
Just to make sure, can you guys decrypt/edit my latest save file: user.zip? It works for me. I've just dumped it after restarting the switch twice (played the game on CFW, restart, played the game on Horizon, restart on CFW, dump); and I had to do something similar to restore the save (dump, reboot, restore, reboot again, start game). That's probably an issue with Checkpoint or with Checkpoint on system 5.1.0. Thanks for pointing it out, @Thealexbarney. I'll leave this issue open while @Acefkor confirms he has the same issue (or doesn't). Thanks again! |
@Igor1201 I tried your file and it works for me, even on Linux. As you said, maybe is a problem with Checkpoint on 5.1.0. |
Works for me too. The above saves that didn't work should fail to decrypt on both Linux and Windows, and fail to load when restored to the Switch |
Hi every one.. i had the same error than @Igor1201 and i updated checkpoint to the last version and now i have this one:
Unhandled Exception: System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: count at ZeroFormatter.DynamicObjectSegments.ZeroFormatter_Formatters_DefaultResolver.PqSave.ConfigData$Formatter.Deserialize(Byte[]& , Int32 , DirtyTracker , Int32& ) at ZeroFormatter.Segments.ObjectSegmentHelper.DeserializeSegment[TTypeResolver,T](ArraySegment i already mod my save file in windows successfully but now i tried on macOS and show me this. would @Thealexbarney please help me to fix it ? |
I'm getting
Unhandled Exception: System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
while trying to decrypt my save file (which has already been modified using this tool, played for many hours, then I'm trying to modify it once again).My save file, for reference: user.zip
The text was updated successfully, but these errors were encountered: