0% found this document useful (0 votes)
9 views

Untitled Document 2

The document describes an algorithm for generating secure passwords based on a user's personal information like their name, age, and purchase history. It involves mapping letters in the user's name to numbers 1-24 alphabetically, combining and manipulating those numbers according to steps like capitalizing letters before odd numbers and adding punctuation. The full steps are outlined through written descriptions, a flowchart, trace table, and pseudocode to clearly explain the process. Examples of passwords generated for different websites are provided at the end.

Uploaded by

api-374158682
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Untitled Document 2

The document describes an algorithm for generating secure passwords based on a user's personal information like their name, age, and purchase history. It involves mapping letters in the user's name to numbers 1-24 alphabetically, combining and manipulating those numbers according to steps like capitalizing letters before odd numbers and adding punctuation. The full steps are outlined through written descriptions, a flowchart, trace table, and pseudocode to clearly explain the process. Examples of passwords generated for different websites are provided at the end.

Uploaded by

api-374158682
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

LUO LAN WENG

Algortihm:
1. Match the letters in your name with numbers 1-24 alphabetically
2. add the numbers after each letter that it represents
3. Do you want to capitalize any of your letters?
4.If yes {capitalize any letter before an odd number}
5.If No { skip to 6}
6. Numbers after letters add up to 45
7. true --->{ add a comma between a letter and a number}
8. false--->( skip to step 9)
9.Count if alphabet letters x>=5
10.if yes {skip to 10}
11. If no { add a letter from p to s after the number 15}
12.Repeat until alphabets letters x>=5
13.Add $ at the end of your password
14.Put the price of the last thing you bought after
15. Put your age in front of everything
16. Generate password
FLOWCHART (separated into parts so you can see clearer)
You can read this if you zoom in 200% (for the picture down below)
TRACE TABLE: http://www.dailymotion.com/us

STEP Password Variable

Match the letters in your first name with l-12


numbers 1-24 alphabetically u- 21
o- 15

add the numbers after each letter that it l12u21o15


represents

capitalize any letter before an odd number l12U21O15

add a comma between the first pair of letter l,12U21O15


and a number

add a letter from p to s after the number 15 l,12U21O15r

Repeat until alphabets letters x>=5 l,12U21O15rq

Add $ at the end of your password l,12U21O15rq$

Put the price of the last thing you bought after l,12U21O15rq$2.75

Put your age in front of everything 14l,12U21O15rq$2.75


Pseucode:
Set n= numbers
l= letters
x= number of alphabet letters
p= password

START
input domain name
match l in your name with n alphabetically
If (you want to capitalize any l)
{capitalize any letter before an odd n}

Else
{ countinue}
If (n>=45)
{add a comma between l&n}

Else
{ continue}
If (l x>=5)
{continue}
Else
{ add an l from p- s after n 15}
Repeat until (l x>=5)
{add an l from p- s after n 15}
Add $ at the end of p
Put the price of the last thing you bought after
Put your age in front of everything
Generate password
END
FIVE EXAMPLES

Website Password Generated

Dailymotion 14l,12U21O15rq$2.75

Yesstyle 22j,10o15y25sp$15.34

Dramafever 8K11a1I9qs$1.08

Romwe 19t,20O15m13m13Y25$42.76

Wechat 32r,18y25a1n14ps$63.10

You might also like