文件名称:diffie
文件大小:25KB
文件格式:ZIP
更新时间:2024-03-27 19:39:55
Go
迪菲·赫尔曼图书馆 “ github.com/aead/ecdh”简单包装器 这个库只是ecdh的一个非常简单的包装,因此您可以在您的项目中使用它 import ( "fmt" "github.com/husseinraed/diffie" ) var d1 diffie. DiffieHellman var d2 diffie. DiffieHellman d1_publickey := d1 . GenPublicKey () d2_publickey := d2 . GenPublicKey () d1_sharedkey := d1 . GenSharedKey ( d2_publickey ) d2_sharedkey := d2 . GenSharedKey ( d1_publickey ) fmt . Println ( d1_sharedkey == d2_
【文件预览】:
diffie-master
----go.mod(156B)
----diffie.go(1KB)
----go.sum(1KB)
----README.md(510B)
----vendor()
--------modules.txt(163B)
--------golang.org()
--------github.com()