aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/api/crypto/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/it/web/api/crypto/index.html')
-rw-r--r--files/it/web/api/crypto/index.html68
1 files changed, 68 insertions, 0 deletions
diff --git a/files/it/web/api/crypto/index.html b/files/it/web/api/crypto/index.html
new file mode 100644
index 0000000000..0add9721d2
--- /dev/null
+++ b/files/it/web/api/crypto/index.html
@@ -0,0 +1,68 @@
+---
+title: Crypto
+slug: Web/API/Crypto
+tags:
+ - API
+ - Interface
+ - NeedsTranslation
+ - Reference
+ - TopicStub
+ - Web Crypto API
+translation_of: Web/API/Crypto
+---
+<p>{{APIRef("Web Crypto API")}}</p>
+
+<p>The <code><strong>Crypto</strong></code> interface represents basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.</p>
+
+<p>An object with this interface is available on Web context via the {{domxref("Window.crypto")}} property.</p>
+
+<h2 id="Properties">Properties</h2>
+
+<p><em>This interface implements properties defined on {{domxref("RandomSource")}}.</em></p>
+
+<dl>
+ <dt>{{domxref("Crypto.subtle")}} {{experimental_inline}}{{readOnlyInline}}</dt>
+ <dd>Returns a {{domxref("SubtleCrypto")}} object providing access to common cryptographic primitives, like hashing, signing, encryption or decryption.</dd>
+</dl>
+
+<h2 id="Methods">Methods</h2>
+
+<p><em>This interface implements methods defined on {{domxref("RandomSource")}}.</em></p>
+
+<dl>
+ <dt>{{domxref("Crypto.getRandomValues()")}}</dt>
+ <dd>Fills the passed {{ jsxref("TypedArray") }} with cryptographically sound random values.</dd>
+</dl>
+
+<h2 id="Specifications">Specifications</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName("Web Crypto API", "#crypto-interface", "Crypto")}}</td>
+ <td>{{Spec2("Web Crypto API")}}</td>
+ <td>Initial definition</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_Compatibility">Browser Compatibility</h2>
+
+<div>
+
+
+<p>{{Compat("api.Crypto")}}</p>
+</div>
+
+<h2 id="See_Also">See Also</h2>
+
+<ul>
+ <li><a href="/en-US/docs/Components.utils.importGlobalProperties">Components.utils.importGlobalProperties</a></li>
+</ul>