- From: Ryan Sleevi <sleevi@google.com>
- Date: Tue, 14 Jan 2014 11:00:39 -0800
- To: Титов Николай <titovns@kamchatka.gov.ru>
- Cc: "public-webcrypto-comments@w3.org" <public-webcrypto-comments@w3.org>
Received on Tuesday, 14 January 2014 19:01:11 UTC
One, that's a bit of an outdated version of the spec. Please see the latest Editor's Draft - https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html Two, the API uses ArrayBufferView, so you can use any API that returns ArrayBuffers - including the File API - http://www.w3.org/TR/FileAPI/ On Mon, Jan 13, 2014 at 2:52 PM, Титов Николай <titovns@kamchatka.gov.ru>wrote: > Hi2all ! > > > > I have read the “working draft” about CryptoAPI for browsers at > http://www.w3.org/TR/WebCryptoAPI/ > > > > Can you tell me: how I can encrypt file data (blob data)? > > In examples, signed & encrypted only simple text data. > > But most public web-applications need encrypt file data too! > > > > For example: > > <!-- file input element of some form --> > > <input type=file id=myfile /> > > > > <script> > > … > > // after user selected file in form, we can do: > > var f = document.getElementById(‘myfile’); > > var signdata = window.crypto.subtle.sign(algorithmSign, > key.privateKey).process(f.getBlob()).finish(); > > </script> > > > > > > But javascript has not interface with read file data. > > > > > > Best regards, chris196765 > > >
Received on Tuesday, 14 January 2014 19:01:11 UTC