Giter Site home page Giter Site logo

dravenk / light Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 739 KB

light is a decentralized, uncensored chat client. Don't welcome the mean dictators of the crates.io team

Home Page: https://gist.github.com/dravenk/093fab89d1f24613822bdb1d70e7b0de

HTML 0.48% Rust 98.73% CSS 0.51% JavaScript 0.27%
anonymity anonymous application chat community cross-platform dag dagknight libp2p linux macos message p2p rust security tauri wasm yew

light's Introduction

light's People

Contributors

dravenk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

light's Issues

Implementation plan.

Alex 和 Bob 分别创建了各自的私钥和公钥

  1. Alex 生成非对称密钥 私钥Ac 和 公钥AC;
  2. Bob 生成非对称密钥 私钥Bc 和 公钥BC;

用户故事:
3. Alex 想要发送消息 MM 给用户 Bob,该消息可以由 Bob 和 Alice 查看明文,并且消息加密后的密文可以通过广播可以保存在任意节点给任意人查看;

消息加密阶段:
4. 前置:Alex 生成对称密钥的私钥 E ,使用 E 加密消息 XX 为 ZZ;
5. Alex 将对称密钥 E 和 Bob 的公钥BC 加密,得到加密密文 F;
6. Alex 还可以使用密钥 E 这里 Alex 可以将密码与任意想要发出的对象的公钥加密;

广播阶段:
7. 加密后的密文消息 mm 广播给任意节点;

接收以及解密阶段:
8. Alex 将密文 F 发送给 Bob;
9. Bob使用私钥Bc将密文 F 的密钥解密;
10. Bob获得对称密钥E;
11. Bob 使用对称密钥E将加密消息 ZZ 解密得到原消息 XX;


  • Alex 和 Bob 分别生成各自的「非对称密钥」;
  • Alex 生成「对称密钥」,使用该「对称密钥」 将「消息明文」加密,得到「消息密文」;
  • Alex 将上面的「对称密钥」使用 Bob 的公钥进行加密得到「新密文」;
  • Alex 将上一步的「新密文」发送给 Bob;
  • Bob 使用私钥将「新密文」解密,Bob获得「对称密钥」 ;
  • Bob 使用「对称密钥」将「消息密文」解密得到「消息明文」;

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.