Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize simple encrypted files by Python programming

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the relevant knowledge of "how to achieve simple encrypted files in Python programming". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Example 1:

If I know that the password of an account must be a number and there are only 4 digits (in fact, this is not common).

Then I can develop a dictionary of 0000-9999:

After running, you can generate an dict.txt dictionary in the current directory

Example 2:

If I want to violently crack a Web backstage,

Then I will think: password information is usually related to the domain name of this website.

Assuming that it has a later administrative password, it is likely to combine with xuyiqing,cnblogs

If combined with some common weak passwords such as: admin,root,manager

Add some special characters, such as! @ #, and the dictionary will be a high-precision, targeted

Here you need to use a third-party library of Python:

The code part is not difficult:

I am only here to throw a brick to attract jade effect, the specific can be modified according to their own needs:

Use:

Enter to generate dictionary files in the current directory

This is the end of the content of "how to achieve simple encrypted files in Python programming". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report