Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The read-only type property of the CryptoKey interface indicates which kind of key is represented by the object. It can have the following values:
-
"secret": This key is a secret key for use with a symmetric algorithm. -
"private": This key is the private half of an asymmetric algorithm'sCryptoKeyPair. -
"public": This key is the public half of an asymmetric algorithm'sCryptoKeyPair.