Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

First: Thinking

1. How is your secret key handled in the application system?

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

◆ Write the secret key directly in the program

◆ Put in environment variables

◆ Do whatever you want

2. What makes you worry?

◆ It is not safe enough to write directly into the program

◆Encryption in environment variables is not safe enough

◆ There is no unified key management center

◆ Keyring, the protagonist of this article, can solve these problems.

Second: install keyring

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

Third: Basic usage

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

1. Use in py files

Create base_use.py file

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

2. Use in the command line

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

Fourth: High-level usage

1. Generate a random password and store it

◆ Random passwords with any number of digits can be generated (including numbers, letters, and symbols)

◆ Numerical-only passwords with any number of digits can be generated

◆ Can generate letter-only passwords with any number of digits

◆ All application names can be obtained

◆ All accounts under the specified application name can be obtained

◆ Accounts under all applications can be obtained by user name

◆ You can get the password of the specified user name under a certain application

◆ You can delete the account with the specified user name under an application

◆ Other functions, readers can add new functions on the basis of mine, and improve this interesting little program together

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

Sixth: Summary

Use Python to manage system secret keys, so you don’t have to worry about setting passwords anymore

 

◆ This article introduces an easy-to-use password management method

◆ Provides a program to generate random passwords and manage them

◆ Readers can add new functions on the basis of the random password management program

◆ This article is excellent and original, there are deficiencies, please advise!

Recommend a software testing learning exchange group: 785128166, there are shared videos, interview guidance, test materials, mind maps, and videos in the group. They are all dry goods, you can download and watch. Mainly share test foundation, interface test, performance test, automated test, TestOps architecture, Jmeter, LoadRunner, Fiddler, MySql, Linux, resume optimization, interview skills, and actual video data of large-scale test projects. Use every minute and every second of your time to learn to improve yourself, and don't use "no time" to conceal your mental laziness! Try hard while you are young, and give your future self an explanation!

Public number: Programmer Erhei, after paying attention, you can receive a large amount of learning materials for free.

Good things should be shared with friends
 
 

Guess you like

Origin blog.csdn.net/weixin_53519100/article/details/114646293