Cybercrime is more prevalent than ever, with scammers and hackers constantly finding new ways to exploit people and business. From an Instagram account impersonating Adele asking for emergency cash, a convincing (but definitely fake) email from your bank, to cyberattacks on major companies, cyber threats keep evolving. If you suspect your email address might have been exposed in a data breach, or if you’re just curious, check out Have I Been Pwned? to find out.
As a data professional, we are responsible for safeguarding sensitive information – not just ours, but also our clients’. One of the most essential but often neglected ways to protect our safety is to set up a strong and hack-proof password. There are a lot of password managers out there that can generate these passwords for you, but where’s the challenge in that…?
1. Import random package, then list all letters, numbers, and symbols

2. Starting with an empty list, perform for loops until all conditions are met
With every loop executed, it appends the existing string from the loop before. This string of characters is then randomised to generate one final random, hack-proof password.

Result 1

Result 2

I wrote this program with Python on Replit, which is free to use if you have an account with them. It’s part of a module I purchased off of Udemy called 100 Days of Code. If you would like to learn more Python and immediately see a tangible product, I’d recommend this module.

