This project demonstrates how to perform symmetric encryption and decryption using the DES (Data Encryption Standard) algorithm in Java. It includes a simple implementation that encrypts a string using a DES key and then decrypts it back to its original form.
DES is a symmetric-key block cipher developed in the 1970s. It encrypts data in 64-bit blocks using a 56-bit key. While considered insecure for modern applications, it remains important in learning cryptographic fundamentals.
Encrypt_Decrypt_DES.java
Contains both encryption and decryption logic usingjavax.crypto
libraries.
- A plaintext string is converted to bytes.
- A DES key is generated (or hardcoded).
- The plaintext is encrypted using DES.
- The ciphertext is decrypted back to plaintext.
javac Encrypt_Decrypt_DES.java
java Encrypt_Decrypt_DES
- Follow the promts