kushaldas / johnnycanencrypt

Python module for OpenPGP written in Rust.
GNU Lesser General Public License v3.0
51 stars 9 forks source link

Use enum instead of 0/1 for public and secret keys and cipher types #33

Closed kushaldas closed 4 years ago

kushaldas commented 4 years ago

Right now public or secret keys are being denoted by 0 or 1 in the Key class. We should use enum module instead.

We should use similar enum at the various cipher values while creating new keys.