Giter Site home page Giter Site logo

baabocrypt-websocket's Introduction

Baabocrypt Blowfish Symmetrical Encryption Chat

This was a small example I wanted to try out to see if a symmetrical communication tool over websocket works


Technologies

In this project, the following are utilized

  • Flask: Flask is a lightweight web framework for Python that allows us to build web applications easily and efficiently.

  • Flask-SocketIO: Flask-SocketIO is an extension for Flask that enables real-time, bidirectional communication between the web server and the client using WebSockets.

  • CryptoJS: CryptoJS is a JavaScript library that provides various cryptographic algorithms, including encryption and decryption functions. We can use CryptoJS to securely encrypt and decrypt data in the browser.

By combining Flask, Flask-SocketIO, and CryptoJS, we can create a secure and real-time communication tool over websockets, ensuring the confidentiality and integrity of the transmitted data.

How does it work?

Encryption is done client-sided through said CryptoJS library. The encrypted messages are sent over the websocket. The access keys (or defined "key" within blowfish) is also used client-sided. This means that encryption and decryption all happen client-sided. The only thing the server gets is the encrypted message, broadcasted to everyone, and decryption will only happen to the clients where this decryption is valid.

Screenshots

The use of the tool

Example Screenshot

What the console sees

Example Screenshot

baabocrypt-websocket's People

Contributors

hopefuls 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.