crypto.js 562 B

123456789101112131415161718192021
  1. /*!
  2. {
  3. "name": "Web Cryptography",
  4. "property": "cryptography",
  5. "caniuse": "cryptography",
  6. "tags": ["crypto"],
  7. "authors": ["roblarsen"],
  8. "notes": [{
  9. "name": "W3C Editor's Draft Spec",
  10. "href": "https://www.w3.org/TR/WebCryptoAPI/"
  11. }],
  12. "polyfills": ["polycrypt"]
  13. }
  14. !*/
  15. /* DOC
  16. Detects support for the cryptographic functionality available under window.crypto.subtle
  17. */
  18. define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
  19. var crypto = prefixed('crypto', window);
  20. Modernizr.addTest('crypto', !!prefixed('subtle', crypto));
  21. });