Giter Site home page Giter Site logo
%%{init: {'themeVariables': {'fontFamily': 'Bernard MT Condensed', 'fontSize': '24px','fontWeight': 'bold'}}}%%
sequenceDiagram
    participant Alice as 👩 Alice
    participant Bob as 👨 Bob
    participant Server as 💻 Server

    rect rgb(200, 220, 255)
        note over Alice: Step 1
        Alice ->> Alice: 👩 generates private key a 🔐
        Bob ->> Bob: 👨 generates private key b 🔐
    end

    rect rgb(200, 220, 255)
        note over Alice: Step 2
        Alice ->> Alice: 👩 computes public key A = g^a mod p 🔑
        Alice ->> Bob: 👩 sends public key A to 👨 ✉️
    end

    rect rgb(200, 220, 255)
        note over Bob: Step 3
        Bob ->> Bob: 👨 computes public key B = g^b mod p 🔑
        Bob ->> Alice: 👨 sends public key B to 👩 ✉️
    end

    rect rgb(200, 220, 255)
        note over Alice, Bob: Step 4
        Alice ->> Alice: 👩 computes shared secret s = B^a mod p = g^(ab) mod p 🔐
        Bob ->> Bob: 👨 computes shared secret s = A^b mod p = g^(ab) mod p 🔐
    end

    rect rgb(200, 220, 255)
        note over Alice, Server: Step 5
        Alice ->> Server: 👩 sends encrypted message to Server 💻: {Alice, Bob, s} ✉️
        Bob ->> Server: 👨 sends encrypted message to Server 💻: {Alice, Bob, s} ✉️
    end

    rect rgb(200, 220, 255)
        note over Server: Step 6
        Server ->> Server: 💻 matches secrets received from 👩 and 👨
        Server ->> Server: 💻 generates session key Ks 🔐
        Server ->> Alice: 💻 sends session key Ks to 👩 ✉️
        Server ->> Bob: 💻 sends session key Ks to 👨 ✉️
    end

    rect rgb(200, 220, 255)
        note over Alice, Bob: Step 7
        Alice ->> Alice: 👩 receives session key Ks from Server 🔐
        Bob ->> Bob: 👨 receives session key Ks from Server 🔐
    end

    rect rgb(200, 220, 255)
        note over Alice, Bob: Result
        Alice ->> Bob: 👩 👨 can now communicate securely using session key Ks 🔐
    end
Loading

c6ai's Projects

keras-nlp icon keras-nlp

Modular Natural Language Processing workflows with Keras

keripy icon keripy

Key Event Receipt Infrastructure - the spec and implementation of the KERI protocol

keycloak icon keycloak

Open Source Identity and Access Management For Modern Applications and Services

keycloak-operator icon keycloak-operator

ARCHIVED Kubernetes Operator for the no longer supported WildFly distribution of Keycloak

kroki icon kroki

Creates diagrams from textual descriptions!

kubeapps icon kubeapps

A web-based UI for deploying and managing applications in Kubernetes clusters

kubernetes icon kubernetes

Production-Grade Container Scheduling and Management

kubetoy icon kubetoy

A simple Node.js app to help explore ICP deployments

kyber-k2so icon kyber-k2so

Go implementation of the Kyber (version 3) post-quantum IND-CCA2 KEM.

kyverno icon kyverno

Kubernetes Native Policy Management

labs icon labs

This is a collection of tutorials for learning how to use Docker with various tools. Contributions welcome.

latex-workshop icon latex-workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.

libkrun icon libkrun

A dynamic library providing Virtualization-based process isolation capabilities

litellm icon litellm

Call all LLM APIs using the OpenAI format. Use Bedrock, Azure, OpenAI, Cohere, Anthropic, Ollama, Sagemaker, HuggingFace, Replicate (100+ LLMs)

lmops icon lmops

!1st-C6AI-HDRL-LDMs-LMOps-MLLMs-DiffusionDB-Promptist-Generative-Adaptation(Hao'22)@Microsoft--LMOps

majorityvotebounds icon majorityvotebounds

A framework for majority vote classifiers allowing for computation of PAC Bayesian risk bounds.

managed-openshift icon managed-openshift

Public roadmaps for the Red Hat Managed OpenShift offerings OpenShift Dedicated (OSD) and Red Hat OpenShift Service on AWS (ROSA)

marblerun-tensorflow-demo icon marblerun-tensorflow-demo

Privacy preserving machine learning demo using TensorFlow, running as an sgx-enclave with Gramine, orchestrated by MarbleRun

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.