-
Notifications
You must be signed in to change notification settings - Fork 0
LaCaBCMD/En-and-decryption
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
############################################################################################################################################# English ############ Program for encryption and decryption. When running the program, the user is prompted to select a shiftcode. Following the selection just made, the user will choose between "Encrypt", "Decrypt" and "Close program". In the next step the user will enter his text. The user's input is saved in a list (encrypted or decrypted text) and depending on the position of the characters (whether even or odd) divided into two lists. List 1 (odd positions) is shiftet by the shiftfactor during encryption. List 2 (even positions) is shifted by the shiftfactor (squared + 7) during encryption. If the user decides to exit the program directly, it closes automatically. (Pressing any key except of e or d ) When decrypting, the lists are reversed and shifted. All letters in upper and lower case are permitted as input as well as numbers from 0-9, dots, exclamation marks and question marks. Not supported are (ä,ü,ö,symbols and commas). The result of the encryption or decryption is output at the end of the process. ############################################################################################################################################# German ######## Programm zur Ver- und Entschlüsselung. Bei der Ausführung des Programms wird der Nutzer aufgefordert einen Shiftcode festzulegen. Im Anschluss wird zwischen "Verschlüsseln", "Entschlüsseln" und "Programm beenden" gewählt, außerdem wird eine zu ver- oder entschlüsselnde Eingabe verlangt. Die Eingabe des Nutzers wird in einer Liste (encrypted- oder decryptedtext) gespeichert. Dort wird abhängig von der Position der Buchstaben / Leerzeichen (ob gerade oder ungerade) in zwei Listen eingeteilt. Liste 1 (ungerade Positionen) wird dann beim Verschlüsseln um den Shiftfaktor verschoben. Liste 2 (gerade Positionen) wird beim Verschlüsseln um den Shiftfaktor zum Quadrat + 7 verschoben. Sollte der Nutzer sich jedoch dazu entscheiden das Programm direkt zu beenden, so schließt dieses sich von selbst. Beim Entschlüsseln werden die Listen gedreht und verschoben. Als Eingabe sind alle Buchstaben in Groß- und Kleinschrift erlaubt, sowie Zahlen von 0-9 und . ! Leerzeichen Fragezeichen. Nicht unterstützt werden die Umlaute und das Komma. Das Ergebnis der Ver- oder Entschlüsselung wird im Anschluss des Prozesses ausgegeben. ##############################################################################################################################################
About
cs project
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published