I have three objects,
A password objects that takes a password/username, checks for validity
and returns a privilege level if a valid password/username was entered
A FileToRecordset object that reads encrypted passwords to and from a
binary disk file and makes
a recordset. This object is used by the password object
An encryption object that encrypts and de-crypts passwords as they are
read to and from the binary file.
This object is used by the FileToRecordset object.
This encryption object has a property that when set to true, reads and
writes unencrypted data to and from the binary file, in other words,
plain text
IT ALL WORKS FINE, Thank you very much, but...
my question:
I have given each of the objects a "NoCipher" property to control if the
binary file is to be encrypted or is in plain text. This property is in
each object but only the encryption object uses it.
I believe this is this good programming practice because it does not
violate encapsulation.
but:
The lazy part of me sez to just put a public variable in a .bas module,
set it once in the program that uses the object(s), have the ecription
object
read it and forgedaboudit.
any comments?
Many thanks
Tony Vanacore avan...@msn.com