Cyber crime is increasing day by day. weak password is not good for devices which
demands high confidentiality, privacy and security of user credentials. It is true
that people find it difficult make a secure password which is strong enough to prevent
cyber criminals to grab it.
In this article we will show how to create strong password consisting numbers,
special-character, upper case, lower case char. which was unpredictable for
crackers can’t be memorised easily.
The component that are used in password creation programme are:
Random module is used for generating random number in in python language, with
the help of random module we can generate random number and character in a programme
when we need it.
Array:
Random method is used to select at least one character from each arrays.
Programme:1

programme2:
In this programme we use random method to select at least one character from
each array of characters. In this code we take 3 arrays consisting of uppercase
and lowercase character and 3rd one with special characters. Then combined
all characters array to form a single array. After that uses the random method
to select at least one character from all three arrays. Now that we are sure that
we have at least one character from each array. Then traverse the password into
array and shuffle b/w characters to prevent it from having a consistent pattern.
if it is consistent then beginning of password is predictable.
Traverse the password array and append the characters to form a strong password.
Autthor:Preenu Mittan
Trainer Python
No comments:
Post a Comment