Release v1.0.0 · Aivyss/password-manager · GitHub
-
Download the program that matches your OS and architecture from the provided link.
-
Rename the downloaded program to
pwm
. -
Move the downloaded file to an appropriate directory and set the environment variable:
export PATH={/your/directory}:$PATH
If you have set the environment variable, you can run the password manager from any directory!
Command:
pwm version
pwm v
Result:
[pwm] version: v1.0.0
If you see the above result, the application is working correctly.
The password manager allows you to register each user and manage passwords for each user. NOTE: This is separate from the operating system's users.
Command:
pwm user create -name {user name} -pw {user password}
This command does not return any message upon success. If no error message is returned, the user creation was successful.
Once a user is registered, they can log in.
Command:
pwm user login -name {user name} -pw {user password}
Result:
[pwm] you entered password-manager console
[pwm][main console] >
If the login is successful, you will enter the console as shown above. From this console, you can register, retrieve, and update passwords.
Password registration is managed like a key-value store. Even if the program is closed, the passwords will not disappear, and you can check them again when you log in. Passwords are stored in a local database and encrypted, making the original values unreadable to anyone except the user.
Command:
[pwm][main console] > save -k {your key} -pw {your password}
If this command is successful, it will not return any result. If there is a problem, it will return a message.
Command:
[pwm][main console] > list
Result (simple example):
KEY | CREATED DATE | LAST UPDATED DATE
-------+-------------------------------+--------------------------------
abcd | 2023-11-18 14:50:14 +0000 UTC | 2023-11-18 14:50:14 +0000 UTC
To check a password, use the following command.
Command:
[pwm][main console] > get -k {your key}
Result:
[pwm][main console] check your password: {your password}
[pwm][main console] please 'clear' command after checking your password
Command:
[pwm][main console] > clear
To update a password, use the following command.
Command:
[pwm][main console] > update -k {your key} -pw {your new password}
Result:
[pwm][main console] please enter your master password again:
This command requests the user's ID again. If the user password matches, the password is changed. If the password change is successful, it does not return any result.
Command:
[pwm][main console] > exit