Git Product home page Git Product logo

cryptokit's Introduction

CryptoKit

Screenshot 2024-06-23 135030

AES-Symmetric Cipher

This project offers encryption and decryption functions using the AES algorithm, supporting ECB and CBC modes to enhance data security during transmission. Screenshot 2024-06-23 135220

Features

  • Encryption Function (encrypt_aes): Encrypts plaintext with AES, supports ECB and CBC modes, applies PKCS7 padding.
  • Decryption Function (decrypt_aes): Decrypts ciphertext back to plaintext, supports ECB and CBC modes, removes PKCS7 padding.

Usage

ECB Mode

  1. Choose "AES encryption and Decryption" with ECB mode.
  2. Enter file path and key, encrypt, and save the encrypted file.
  3. Decrypt using the same key to retrieve the original message.
  4. Handles errors for incorrect file paths or empty files. Screenshot 2024-06-23 135121

CBC Mode

  1. Choose "AES encryption and Decryption" with CBC mode.
  2. Enter file path, IV, and key, encrypt, and save the encrypted file.
  3. Decrypt using the correct path and key to retrieve the original message. Screenshot 2024-06-23 135138

Secure Communication Widget with Authentication and Confidentiality

This code ensures secure communication using AES for confidentiality and RSA for authentication, guaranteeing data integrity and privacy. Screenshot 2024-06-23 135503

Features

  • RSA Key Pair Generation: Creates private and public keys for authentication.
  • Authentication Functions (auth_source_a, auth_destination_b): Authenticates messages by hashing and encrypting/decrypting the hash using RSA.
  • RSA Encryption/Decryption: Encrypts and decrypts messages using RSA with OAEP padding.
  • Hashing: Computes and compares hash values using SHA-512.
  • Confidentiality Authentication: Extends authentication with AES encryption for confidentiality.

Expected Results

  • Authentication: perform_authentication returns True if successful, False otherwise.
  • Confidentiality and Authentication: confidentiality_authentication returns True if both processes are successful, False otherwise.

Usage

Authentication

  1. Choose the Authentication option.
  2. Enter the same message at source and destination, provide a valid public key, and run.
  3. Authentication fails if messages at source and destination differ.

cryptokit's People

Contributors

nayera540 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.