Online functional algorithm formats



Given some more time to work on actual algorithms, I have revisited
some of my work in different styles to include trial improvements in
them. Different algorithms require different formats for sure.

A single field is all that is needed for the classic and dumb ROT13
and similar functioning algorithms. Just hit the single button for
that algorithm and all is done.

Add a key structure and you might get away with a single field but key
special fields may prove convenient for entry and/or display of the
keys. A single major field, text area, is adequate if an algorithm
can be multiply encrypted or reverse use of encrypt/decrypt functions
are within allowed protocols.

One plan that works for all, and is advantageous for many algorithms
is a two main field approach where one field above is input and one
below is another field for output. This works best for some algorithms
where multiple encryption is not useful or within the allowed
protocol. Paste or conceive Pt. in the input field, usually topmost.
Click ENCRYPT, and recover the Ct. in the output field, usually
bottommost of the two major fields. Paste Ct. into the topmost field
and select DECRYPT then recover Pt. in the bottom field. Two such
fields means that the processing commands need not be deglitched as
hitting a given processing command more than once does nothing
different than doing it once.

Other command controls along with the ENCRYPT and DECRYPT buttons may
prove helpful. One is a MOVE UP command which moves the contents of
the output field to the input field so that a whole processing loop
can be easily verified. Second, the output field should have a Select
option so can be easily copied to clipboard. Third, a Clear button
should be included for the top input field. If the bottom field is
selected, a simple delete on the keyword would clear it but this need
would be rare. These few command controls are best placed between the
main fields, and any such key specific fields and commands should all
be above the input field and topmost in the window.

Main fields should be resizable with the window itself while key
specific fields might prove best left static unless a huge amount of
key text Kt. need be accepted. I also like to shade the window
background and leave the fields themselves white.

.


Loading