이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 함께 해서 번역을 마치도록 도와 주세요!
The CryptoKey
interface represents a cryptographic key derived from a specific key algorithm.
A CryptoKey
object can be obtained using SubtleCrypto.generateKey()
, SubtleCrypto.deriveKey()
or SubtleCrypto.importKey()
Properties
This interface doesn't inherit any property.
CryptoKey.type
- Returns an enumerated value representing the type of the key, a secret key (for symmetric algorithm), a public or a private key (for an asymmetric algorithm)
CryptoKey.extractable
- Returns a
Boolean
indicating if the raw information may be exported to the application or not. CryptoKey.algorithm
- Returns an opaque object representing a particular cipher the key has to be used with.
CryptoKey.usages
- Returns an array of enumerated values indicating what the key can be used for.
Methods
This interface neither inherits, nor implements, any method.
Specifications
Specification | Status | Comment |
---|---|---|
Web Cryptography API The definition of 'CryptoKey' in that specification. |
Candidate Recommendation | Initial definition. |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 37 | 34 (34) | Not supported | ? | Not supported |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | 37 | 37 | 34.0 (34) | Not supported | ? | Not supported |
See also
Crypto
andCrypto.subtle
.