rafaeelaudibert / Encryptor

Several encryptors (cryptographic secure or not) available in a REST API fashion, using Flask
8 stars 12 forks source link

Implemented the python-blowfish package into the encryptors api. #27

Closed NinoDoko closed 4 years ago

NinoDoko commented 4 years ago

As per #14, I used the python blowfish module to add encrypt and decrypt endpoints which implement blowfish in order to encrypt data. I hope I followed the guidelines properly; this can be tested by going to, for instance:

http://127.0.0.1:5000/api/blowfish/encrypt/someimportantdata
http://127.0.0.1:5000/api/blowfish/decrypt/15597aaa9b538075e80d6443f01359a15e

Blowfish allows a lot of modes to be used. These can be specified by sending the mode query argument :

http://127.0.0.1:5000/api/blowfish/encrypt/someimportantdata?mode=ofb

Also features encryptor and api tests, which should work properly with pytest.

What is missing:

rafaeelaudibert commented 4 years ago

Thank you, @NinoDoko! I appreciate all the effort you have creating this.

I have only one thing I would like you to change. Could you please move your Blowfish exception to the errors folder, altogether with the other custom errors? This way we have a better-organized codebase.

rafaeelaudibert commented 4 years ago

Hey @NinoDoko, just passing by to see if you have any updates on the little change I asked you?