MCPcopy Create free account
hub / github.com/Scalingo/cli / isEncrypted

Method isEncrypted

crypto/sshkeys/private_key.go:49–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func (p *PrivateKey) isEncrypted() bool {
50 return p.Block.Headers["Proc-Type"] == "4,ENCRYPTED" || p.isOpenSSHFormatEncrypted()
51}
52
53func (p *PrivateKey) isOpenSSHFormatEncrypted() bool {
54 if p.Block.Type != "OPENSSH PRIVATE KEY" {

Callers 2

signerMethod · 0.95

Calls 1

Tested by 1