Closed RobThree closed 1 year ago
Wait... this is new, isn't it?
Hmmm, looking at it today it "suddenly" works with CipherMode.CBC / PaddingMode.PKCS7. I'm not sure if somehow I messed up last time I tried or the downloaded blob was - at the time - somehow encrypted differently / incorrectly but either way: it works now! 👍
LastPass seems to have changed something recently - according to the date on this post it was changed today. The post reads:
However, my guess is that LastPass changed something else as well (which may not be very relevant to the average user). But this project (and the one this project borrows some code from) are currently broken. Decryption of the file fails:
System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
I have contacted LastPass with the following inquiry:
A short investigation into the LastPass browser extension showed this:
I have tried all combinations of
CipherMode.CBC
/CipherMode.ECB
andPaddingMode.PKCS7
/PaddingMode.PKCS7
but none of them seemed to work. For now I'm a little too busy to dive deeper; I'm hoping for the community to have some pointers, tips or maybe even the solution?