Skip to content
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

Input length must be multiple of 16 when decrypting with padded cipher #2

Open
fvalle1 opened this issue Mar 16, 2020 · 3 comments
Open

Comments

@fvalle1
Copy link

fvalle1 commented Mar 16, 2020

I'm trying to decrypt my Fill Values file. but I receive

Exception in thread "main" javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
at java.base/com.sun.crypto.provider.CipherCore.prepareInputBuffer(CipherCore.java:1005)
at java.base/com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:848)
at java.base/com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:446)
at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2202)
at com.flo354.decrypt.safari.formvalues.FormValueDecryptor.decrypt(FormValueDecryptor.java:39)
at com.flo354.decrypt.safari.formvalues.FormValueDecryptor.main(FormValueDecryptor.java:56)

Any idea of what can be the issue be?

Thank you

@Flo354
Copy link
Owner

Flo354 commented Mar 20, 2020

Hello there,

It is related to #1

Actually, the tool I wrote is usable for old version of MacOS.

We discovered in #1 that at some point, Apple changed the encryption process. Unfortunately, I don't have the time to dig into this as it requires some reverse engineering.

If at some point I need the feature for new versions of MacOS I will try to implement it.

Otherwise, if you or someone has the knowledge to do it, pull requests are most welcomed!

@bernsteining
Copy link

Hi,

For which versions of macOS & Safari did your tool work correctly?

I'm currently trying with different Form Values from different versions and I'm getting the same error as above. (macOS 10.7 & 10.11)

Also, an example of working Form Values & Password would be awesome.

Nice project anyway!

@Flo354
Copy link
Owner

Flo354 commented Apr 17, 2020

Hello there,

So I remembered that I did this program for a Form Value that was on a MacOS 10.7.
So it should work on MacOS 10.7, but to be honest, I used that project a single time, so I don't really remember how I used it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants