CyberArmy University | Open Source Institute | CyberArmy Intelligence & Security | CyberArmy Services & Projects

Yeah, that would work...


[Replies] [Reply] [View by Thread] [Help]
[Back To SNEAK Development Forum]

Posted by CinC snarkles On 2005-03-01 21:51:01
In Reply to InvalidArgumentExceptions--How should we handle it Posted by Cpt SAJChurchey On 2005-02-28 19:31:39

CinC
CinC snarkles


We could even on the form use something along the lines of an OnKeyUp event to check and make sure there's something in the textarea prior to enabling the "Go" button. Though that wouldn't necessarily be portable to a commandline interface (although similar checks could be made there).

With regard to the null/empty string check specifically (since it applies to *all* crypt methods), we should probably move that into a superclass (EncryptionScheme), and have an isValidInput() method which at that level only checks for null/empty string, but later subclasses (like Binary2Text) could override that method to check and make sure the input consisted of only 1s, 0s, and whitespace (for example) as well.



Replies:


Guest:
Subject:
Message:
Signature:
Optional Image Link:
http://

CyberArmy::Forum v0.6
Generated In 0.02307 seconds


About Us | Privacy Policy | Mission Statement | Help