- store password in encrypted form, instead of purely store them in memorandum, add even upload to icloud (lollll)
- locally config public key & private key
- used in command line, free to get & set password
- memorize in disk, output encrypted code
- config written in json
- data encrypted written in json file, working like:
{ "google":"213ab314cf", "facebook":"12345fb3cd" }
ssh-keygen -t rsa -m PEM
Then enter the directory you created .ssh
file.
# in .ssh folder
ssh-keygen -f id_rsa.pub -m PEM -e > id_rsa.pub.pem
will generate a .ssh
folder in system path. In windows for example, the folder will be put default in "C:\\Users\\%Username%\\.ssh"
The -m PEM
argument is important in use, cause we use PEM style private & public key
pip install rsa
cd pyEncrypt
echo {} >> output.json
echo {} >> config.json
currently need this command cause the program will not automatically create an empty json file.
usage: python encrypt.py [-h] [--set KEY VALUE] [--get GET] [--config ConfigName ConfigValue] [--all]
python encrypt.py --config ssh-folder <your ssh folder path>
Then, to set a new password, use
python encrypt.py --set <your-account-name> <your-password>
e.g
python encrypt.py --set google 123456
python encrypt.py --get <your-account-name> [--all]
e.g
python encrypt.py --get google
- [ feat ] The program currently causes error when file not exist or not in json format. Automatically generate empty json file.
- [ feat ] Release binary version to make it safer.
- [ fix ] Solve the problem of encoding. Some PCs have default coding style rather than utf-8. Should all be adjusted specifically.
- [ doc ] Update doc