http://www.w3.org/TR/WebCryptoAPI/

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 07:09:20 UTC