A constructor which takes two parameters; the users name (a string) and the users cipher key (a string). A Vigenere cipher matrix is initialised if the key is valid (same rules as the last class) and the users name is valid. The users name is invalid if the string contains a space. Everything else is valid (upper and lower case letters, symbols, ... ).
An accessor called "getUser" to return the users name.
A main method that tests the functionality of "User"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.