Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can someone show me with detail how to make a code on matlab to do this? Your computer system uses a 4-letter password for login.
Can someone show me with detail how to make a code on matlab to do this?
Your computer system uses a 4-letter password for login. For our purposes the password is restricted to lower case letters of the alphabet. It is easy to calculate that the total number of passwords which can be produced is n = 26^4. A hacker creates a list of m=10^5 random 4-letter words, as candidates for matching the password. Note that it is possible that some of the m = 10^5 words could be duplicates You are given your own 4-letter password and you need to check if the hackers list contains at least one word that matches you password. This is considered one experiment. If a word in the list matches your password, the experiment is considered a success. Repeat the experiment for N = 1000 times and calculate the probability that at least one of the words in the hacker's list will match your password. If the hacker creates a list of m = 10^6 random 4-letter words, repeat the previous experiment for N = 1000 times and find the probability that at least one of the words in the hacker's list will match the password. Repeat the previous experiment for N = 1000 times to find the approximate number (m) of the words that must be contained in the hacker's list so that the probability of at least one word matching your password is p = 0.5Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started