home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Oakland CPM Archive
/
oakcpm.iso
/
cpm
/
pubkey
/
pks10-m.inf
< prev
next >
Wrap
Text File
|
1984-09-28
|
701b
|
15 lines
PKS Version 1.0
Public Key System routines are derived from the article;
'Public Key Cryptography: An Introduction to a powerful crypto-
graphic system for use on microcomputers" by John Smith found in
BYTE magazine Volume 8, Number 1, January, 1983.
The routines here are MBASIC compatible and differ from the
published routines only in handling of the BASIC function RND.
MBASIC RND with an argument of zero simply returns whatever
number was last generated. The MBASIC command RANDOMIZE is used
to seed the random number generator with a number from 0 to 32767
by computing; N mod 32768. This change appears in both
TESTPRIM.BAS and FINDPRIM.BAS.