home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
historic
/
v941.tgz
/
icon.v941src.tar
/
icon.v941src
/
ipl
/
progs
/
mkpasswd.icn
< prev
next >
Wrap
Text File
|
2000-07-29
|
1KB
|
50 lines
############################################################################
#
# File: mkpasswd.icn
#
# Subject: Program to make passwords
#
# Author: Jere K{pyaho
#
# Date: August 14, 1996
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# This program creates a list of randomly generated passwords.
#
# Passwords consist of eight random characters [A-Z][0-9].
#
# Number of passwords to generate is given as the first argument; default 1.
#
############################################################################
procedure main(Args)
local count, i
count := integer(Args[1]) | 1
every i := 1 to count do
write( genpasswd() )
end
#
# genpasswd: generate and return an 8-character password
#
procedure genpasswd()
local i, s, ucalnum
s := ""
ucalnum := &ucase ++ &digits
every i := 1 to 8 do
s := s || ?ucalnum
return s
end