Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.
The CryptoKey.type read-only property that indicates the type of the key: if it is the key for a symmetric algorithm ("secret") or for an asymmetric algorithm ("public" or "private", depending of its purpose).
Syntax
result = key.type
Return value
result is an enumerated value that can be:
"secret" represents the unique key used for encrypting or decrypting a message using a symmetric algorithm.
"public" represents a publicly shareable key used in an asymmetric algorithm.
"private" represents a key used in an asymmetric algorithm that must be kept private.