Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Key Expiration and Key Rotation (new) #106

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Entity069
Copy link
Contributor

Related Issue

Closes #16

Type of Change

  • New Feature
  • Bug Fix
  • Code Refactor
  • Documentation Update
  • Other (please specify):

Description of Change

Implemented a feature for key expiration and key rotation.

Implementation Details

  • Implemented two key expiration : Key creation date is stored in the second line of the key file
  • Implemented key rotation : If key is expired (by default expiration date is 30 days), then user is provided with an option to regenerate key and re-encrypt all files password files.
  • Added is_key_expired function to check if the key is expired
  • Added rotate_key to regenerate the key and re-encrypt all password files
  • Changed main.py to ask user for regeneration prompt and prompt for password files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Key Expiry and Rotation
1 participant