{"json_modified": "2016-03-28T08:42:33.209633", "uuid": "4157a4a6-4e26-4c46-bee8-d39aa086128a", "title": "SubtleCrypto.generateKey()", "url": "/en-US/docs/Web/API/SubtleCrypto/generateKey", "tags": ["API", "Reference", "Web Crypto API", "R\u00e9f\u00e9rence", "SubtleCrypto", "Method"], "translations": [], "modified": "2016-01-19T01:51:24", "label": "SubtleCrypto.generateKey()", "localization_tags": [], "locale": "en-US", "id": 134523, "last_edit": "2016-01-19T01:51:20", "summary": "The SubtleCrypto.generateKey()
method returns a Promise
of a newly generated CryptoKey
, for symmetrical algorithms, or a CryptoKeyPair
, containing two newly generated keys, for asymmetrical algorithm, that matches the algorithm, the usages and the extractability given as parameters.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Return_value", "title": "Return value"}, {"id": "Exceptions", "title": "Exceptions"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/SubtleCrypto/generateKey", "review_tags": []}