https://pkg.go.dev/filippo.io/age offers a simple interface for encrypting/decrypting, with command line, too.
christoph...@gmail.com a következőt írta (2023. szeptember 20., szerda, 10:02:24 UTC+2): > Hello, > > I noticed that the go standard library only support ed25519 signing ( > https://pkg.go.dev/crypto/ed2...@go1.21.1 > <https://pkg.go.dev/crypto/ed25519@go1.21.1>). > > I would need to encrypt a small secret with the public key of the receiver > so that he is the only one able to decrypt it with its private key. The > small secret would typically be a random symmetric key used to encrypt the > possibly long message. > > The only solution I found is to use nacl.Box ( > https://pkg.go.dev/golang.org/x/crypto/nacl/box). Why is it so ? > > Are there alternative reliable go packages I could use ? I'll use only a > pure Go package, not a libsodium wrapper package. > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/44f42db0-cbd5-4a36-ab38-a4ca7d9d09abn%40googlegroups.com.