keyObject.type


根据此 KeyObject 的类型,此属性可以是秘密(对称)密钥的 'secret',公钥(非对称)密钥的 'public',或私钥(非对称)密钥的 'private'

🌐 Depending on the type of this KeyObject, this property is either 'secret' for secret (symmetric) keys, 'public' for public (asymmetric) keys or 'private' for private (asymmetric) keys.