This project implements an integrated Data Obfuscation and Cybersecurity System. The system combines data pseudonymization, tokenization, cryptographic encryption, and AI-based anomaly detection into a unified workflow to protect sensitive data and detect potential cyber threats.
- Pseudonymization: Replaces sensitive information with unique identifiers (UUIDs).
- Tokenization: Encrypts pseudonymized data for additional security.
- AES Encryption: Encrypts obfuscated data using AES symmetric encryption.
- RSA Encryption: Secures keys and provides asymmetric encryption for data exchange.
- Isolation Forest: Detects anomalies in data using machine learning.
- Custom Features: Simulated feature extraction for anomaly detection.
- Reads sensitive data, applies obfuscation, and encrypts it.
- Detects anomalies in encrypted/obfuscated data using an AI model.
- Decrypts and deobfuscates the data to restore the original content.
- Input Data: A file containing sensitive information.
- Obfuscation:
- Pseudonymization of sensitive text.
- Tokenization with encryption.
- Encryption: AES encrypts the obfuscated data.
- AI Analysis: Detects anomalies in the obfuscated/encrypted data.
- Decryption and Deobfuscation:
- Decrypts the AES-encrypted data.
- Restores original data through detokenization and reverse pseudonymization.
|-- cryptographic_algorithms.py # Main script for integration
|-- sample.txt # Sample input file
|-- decrypted_sample.txt # Output after decryption and deobfuscation
|-- aes_key.key # AES encryption key
|-- private_key.pem # RSA private key (password-protected)
|-- public_key.pem # RSA public key
- Python 3.8+
- Libraries:
cryptographypandasscikit-learn
Install dependencies:
pip install cryptography pandas scikit-learn-
Clone the repository:
git clone https://github.com/yourusername/Artificial-Intelligence-Project.git cd Artificial-Intelligence-Project -
Run the main script:
python cryptographic_algorithms.py
-
Verify the output:
- Check
sample.txtanddecrypted_sample.txtto confirm the workflow.
- Check
- Maps original data to UUIDs for anonymity.
- Example:
Original: Name: John Doe Pseudonymized: c992ffc7-aff9-4eec-a797-5ea1adabd0e1
- Encrypts pseudonymized data for security.
- Example:
Token: gAAAAABng...
- Uses a 256-bit AES key for data encryption.
- Securely stores the encrypted file as
sample.txt.enc.
- Password-protected RSA private key stored as
private_key.pem. - Public key stored as
public_key.pem.
- AI model predicts whether data is normal or anomalous.
- Example prediction:
AI Prediction: Normal
- The system has been tested with:
- Sample text data (
sample.txt). - Anomaly detection using a simulated dataset.
- Sample text data (
- Output files are validated to match original content.
- Support for additional file formats (e.g., JSON, CSV).
- Extend AI model to real network traffic datasets.
- Add a GUI or web interface for ease of use.
- Nico M -
- Geri R -
Thank you for exploring the Data Obfuscation and Cybersecurity System! 🎉