Go to Android platform Display platforms icon
Go to Android platform Go to Windows platform Go to Mac platform
E MACHINE icon

E MACHINE

9.8
Dev Onboard
0 reviews
30 downloads

Encrypt your text

Advertisement
Remove ads and more with Turbo
Alberto García icon
Reviewed by
Alberto García
Developer’s Operations and Support

The text encryption and decryption machine I provided earlier uses a simple Caesar Cipher algorithm. Here's how it works:

1. The user enters a shift value (an integer) and a message into the corresponding input fields.

Advertisement
Remove ads and more with Turbo

2. When the user clicks the "Encrypt" button, the `encrypt()` function is called.

3. Inside the `encrypt()` function, the shift value and the message are retrieved from the input fields.

4. A variable called `encryptedMessage` is initialized to store the encrypted message.

5. The function iterates over each character in the message. For each character:

- The character is converted to its Unicode character code using `charCodeAt()`.

- If the character is an uppercase letter (from 'A' to 'Z'), its Unicode value is adjusted by the shift value using modular arithmetic to wrap around the alphabet. The adjusted Unicode value is converted back to its corresponding character using `String.fromCharCode()`.

- If the character is a lowercase letter (from 'a' to 'z'), the same process is performed.

- If the character is not an alphabetic character (e.g., space, punctuation), it is left unchanged.

6. The resulting encrypted characters are concatenated and stored in the `encryptedMessage` variable.

7. The `encryptedMessage` is then displayed in the "Encrypted Message" textarea.

8. Similarly, when the user clicks the "Decrypt" button, the `decrypt()` function is called.

9. Inside the `decrypt()` function, the shift value and the encrypted message are retrieved.

10. A variable called `decryptedMessage` is initialized to store the decrypted message.

11. The function iterates over each character in the encrypted message. For each character:

- The character is converted to its Unicode character code.

- If the character is an uppercase letter, its Unicode value is adjusted by subtracting the shift value and performing modular arithmetic to wrap around the alphabet.

- If the character is a lowercase letter, the same process is performed.

- If the character is not an alphabetic character, it is left unchanged.

12. The resulting decrypted characters are concatenated and stored in the `decryptedMessage` variable.

13. The `decryptedMessage` is then displayed in the "Decrypted Message" textarea.

Additionally, there are options to copy the encrypted or decrypted text to the clipboard by clicking the "Copy" icon next to each textarea. The "Clear" icon can be used to clear the contents of each textarea.

This is a simplified example, and the Caesar Cipher is not a secure encryption algorithm for real-world applications. It's important to note that for secure encryption and decryption, you should use well-established cryptographic algorithms and libraries.

Translated by Uptodown Localization Team

Requirements (Latest version)

  • Android 4.4 or higher required

Information about E MACHINE 9.8

Package Name e.machine
License Free
Op. System Android
Category Security/Performance
Language English
46 more
Author smdsujon099
Downloads 30
Date Dec 19, 2023
Content Rating Not specified
Advertisement This app contains ads
Why is this app published on Uptodown? (More information)
Advertisement
Remove ads and more with Turbo

Rate this App

Review the app
E MACHINE icon

Comments

There are no opinions about E MACHINE yet. Be the first! Comment

Advertisement
Remove ads and more with Turbo
Calculator Lock - Video Lock & Photo Vault – HideX icon
Hide private information with an app that looks like a calculator
Samsung Good Lock icon
Customize your Samsung smartphone's lock screen
Xiaomi Security icon
Xiaomi's official security and maintenance app
AnTuTu 3DBench Lite icon
Carry out a 3D rendering test on your smartphone
AppLock icon
Put a lock on any part of your Android device
Kaspersky Antivirus & VPN icon
All the protection your smartphone could ever need
Microsoft Authenticator icon
Microsoft's two-step verifier
Find My Device icon
Find your device if it is lost or stolen
Uptodown App Store icon
All the apps you could ever want on your Android
Update Me icon
Keep your modified apps up to date
Google Chrome icon
The official Google browser
QuickShortcutMaker icon
Create shortcuts and access your apps in a snap
Secure VPN icon
Maintain your privacy and anonymity as you browse
Google Play services icon
Essential app to keep your apps up to date
SuperVPN Fast VPN Client icon
Secure and private browsing
Google Installer icon
Install Google apps on Xiaomi devices