Closed kiike closed 8 years ago
I have written a unit test, but it overwrites the key so that we don't use the pushbullet.py
-generated key. The reason is that pushbullet.py
creates a key with a salt which is different to that in the pushbullet docs. In order to make this test consistent with the Pushbullet docs, I have overriden the key with the one in the docs.
Oh, all these @coveralls messages mean that I rebased the commits into one that made more sense and it got a little bit too verbose before the rebasing.
This PR adds decryption support to the PB base class. It is based on both the Cryptography examples on AES-GCM decryption and Pushbullet's API examples. I tried to make it work as similarly as your encryption method.
I have been using it this afternoon and have this screencast showing it in action in my
pushbullet.py
-based PB client.