Passwordify
Please Log In for full access to the web site.
Note that this link will take you to an external site (https://shimmer.mit.edu) to authenticate, and then you will be redirected back to this page.
As an intern for Computer Securities (CS), you are assigned the task of making the company's employee passwords more secure. Your manager Larry instructs you to implement a function called strengthen_password
to transform the old string passwords into new strings:
- Any occurence of
'o'
in the old password should become'0'
. - Any occurence of
'e'
should become'3'
- Any occurence of
'i'
should become'!'
You should not replace any other characters (even, for example, uppercase 'O'
, 'E'
, or 'I'
characters).1
Once you've tested your code by hand, upload your file for testing:
No file selected
Next Exercise: Compound Interest
Footnotes
1Disclaimer: this algorithm is far from sufficient to create safe passwords! Wikipedia gives good guidelines to protect yourself.