An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/AgentCoop/dhkx

This is an implementation of Diffie-Hellman Key Exchange algorithm. The algorithm is used to establish a shared key between two communication peers without sharing secrete information. Typical process: First, Alice and Bob should agree on which group to use. If you are not sure, choose group 14. GetGroup() will return the desired group by a given id. GetGroup(0) will return a default group, which is usually safe enough to use this group. It is totally safe to share the group's information. NOTE: The code below will skip error-checking part for the sake of simplicity. Here is the code on Alice's side: Similarly, here is the code on Bob's side: To this point, the variables ”key” on both Alice and Bob side are same. It could be used as the secrete key for the later communication.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/%21agent%21coop/dhkx
License: Apache-2.0
Latest release: over 7 years ago
First release: over 7 years ago
Namespace: github.com/AgentCoop
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 months ago

    Loading...
    Readme
    Loading...