Use dict instead of tuple for keys #7

Closed
opened 2020-09-30 21:13:55 +02:00 by Hesham · 0 comments
Owner

By using dict data type for keys, the hardcoded constants in top of rsa.py file can be removed and set as keys for the dict object.

key_dict = {'p':p, 'q': q, 'e': 6xxxx, ... }

then accessed with:
n = key_dict['n'] and so on.

By using dict data type for keys, the hardcoded constants in top of rsa.py file can be removed and set as keys for the dict object. `key_dict = {'p':p, 'q': q, 'e': 6xxxx, ... }` then accessed with: `n = key_dict['n'] `and so on.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Hesham/hesham-rsa#7
No description provided.