Settings

Theme

Keeping secrets with JavaScript – An Introduction to the WebCrypto API [video]

timtaubert.de

51 points by humpt 11 years ago · 4 comments

Reader

diafygi 11 years ago

A great talk. I had no idea you could create a prompt for the user to input their password that wouldn't be visible to Javascript (really cool!).

One thing that was really glossed over in the beginning was switching from an arbitrary data format to an ArrayBuffer. Is there are built-in way to do that operation or will we need to write our own conversion functions?

  • ttaubert 11 years ago

    For non-binary data in general you would have to create your own serialization mechanism. For everything that can be represented textually you can however use the TextEncoder/Decoder API: "var buffer = new TextEncoder("utf-8").encode(text)".

    • diafygi 11 years ago

      Thanks for the response. What I wouldn't give for a built-in equivalent of python's pickle.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection