Encrypt your messages! -- Simple app that turns String into Hex and 'Encrypts' it
THis app simply converts the Text you enter into HexString and then replaces few numbers with ASCII characters and reverses the edited-hex and outputs the result thus, creating a simple Encryption.
This app has-
-
Alert-View,
-
This app follows MVC Principle,
-
Keyboard Dismisses on 'Done',
-
Data-Encapsulation,
-
Uses Constraints.
- If you enter anything other than "Encrypted String" into the Decrypt-Text-field the App will crash with a Fatal Error, reason being the while loop that converts hex into String crashes.
Fix:-
-
Catching the error in a try-catch closure. (Better and convinient Fix.)
-
Avoiding the Error by using Conditionals (If-Else) and allowing only the Encrypted data to be used in the decrypt-text-field.
Made by - Raghav Vashisht
30 May 2017