Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

COBOL Programming :: RE: Random Password (in string format) generation.

$
0
0
Author: Bill Woodger
Subject: Reply to: Random Password (in string format) generation.
Posted: Mon Aug 29, 2016 4:11 pm (GMT 5.5)

Forget about a). With a minimum of 52-to-the-power-of-10 possibilities for the password, you'd be extremely unlikely (one in 10-to-the-17+ for a single number) to get a repeat on a random generation, and you'd need about 10-to-the-10+ passwords generated before you get to a one-in-a-million chance of a repeat.

Count your allowable characters. Generate 10 random numbers within that range. Use a table to access the stored characters, once for each character of the password.

Confirm whether the random number should be "seeded" or not. Your Audit/Security people will know, if no-one else.


Viewing all articles
Browse latest Browse all 9405

Trending Articles