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

fix: Decrypt the pass-phrase protected atKeys and write to stdout #750

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

Conversation

sitaram-kalluri
Copy link
Member

- What I did

  • Add "decrypt" command to prints the decrypted version of pass-phrase protected atKeys file to the terminal.
  • Move the logic in at_auth package which decrypts the pass-phrase protected atKeys file from AtAuthImpl to a new class - AtAuthUtils to reuse the logic in the AtOnboardingCli.

- How I did it

  • In the AtAuth package, Move the method "_prepareAtAuthKeysFromFilePath" which decrypts the AtKeys file content to a new class - AtAuthUtils.
  • In AtOnboardingCli, introduce "decrypt" command to the "auth_cli.dart" which will decrypt the pass-phrase protected atKeys files and writes the output to the standard output.
  • To decrypt the atKeys file content, construct an AtAuthRequest and pass the request to the "AtAuthUtils->"decryptAtKeys" method which will decrypt and return the original atKeys.
  • Write the original atKeys to the terminal.

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.

Add "decrypt" in "activate_cli.dart" to decrypt the passPhrase protected atKeys file.
1 participant