在服务器端 Go 代码中,我获取私钥并使用它们对断言进行签名,但我不想让它们留在内存中。以下是否理智?
var private ed25519.PrivateKey
// acquire and use the private key
// now I want to overwrite it so it's not lurking in memory
privKeyBytes := []byte(private)
_, _ = rand.Read(privKeyBytes)
喵喵时光机
相关分类