A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

Difference between revisions of "Crypto"

From WHATWG Wiki
Jump to navigation Jump to search
Line 6: Line 6:


<pre>
<pre>
[Suplemental]
[Suplemental, NoInterfaceObject]
interface Window {
interface Window {
   readonly attribute Crypto crypto
   readonly attribute Crypto crypto;
}
};


[NoInterfaceObject]
interface Crypto {
interface Crypto {
   void getRandomValues(in ArrayBufferView array);
   void getRandomValues(in ArrayBufferView array);
}
};
</pre>
</pre>



Revision as of 21:49, 14 February 2011

Overview

This document describes a proposal for the window.crypto API.

Interface

[Suplemental, NoInterfaceObject]
interface Window {
  readonly attribute Crypto crypto;
};

[NoInterfaceObject]
interface Crypto {
  void getRandomValues(in ArrayBufferView array);
};

Methods

getRandomValues