MCPcopy
hub / github.com/cloudflare/cloudflared / PublicKey

Method PublicKey

token/encrypt.go:59–61  ·  view source on GitHub ↗

PublicKey returns a base64 encoded public key. Useful for transport (like in HTTP requests)

()

Source from the content-addressed store, hash-verified

57
58// PublicKey returns a base64 encoded public key. Useful for transport (like in HTTP requests)
59func (e *Encrypter) PublicKey() string {
60 return base64.URLEncoding.EncodeToString(e.publicKey[:])
61}
62
63// Decrypt data that was encrypted using our publicKey. It will use our privateKey and the sender's publicKey to decrypt
64// data is an encrypted buffer of data, mostly like from the Encrypt function. Messages contain the nonce data on the front

Callers 1

RunTransferFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected