locked
Windows.Security.Cryptography for javascript RRS feed

  • Question

  • Hey Everyone,

    Thanks for your time, I'm trying to use apache cordova and decrypt on read and encrypt on write with in the file proxy. After countless hours spent on the development documentation I failed miserably. I need to encrypt using AES256-bit encoding of utf8, using a symmetric key to which I wish to supply my own as a stringToBytes. The Javascript implementation only provides a declaration e.g. var symmetricKeyAlgorithmProvider = Windows.Security.Cryptography.Core.SymmetricKeyAlgorithmProvider;

    I understand the examples provided in C# however once I clicked on the IBuffer documentation to see the JavaScript implementation I had to call it quits.

    so in summary I understand I need an encryption function which requires parameters of the symmetric key(iBuffer), the data to be encrypted, and the initialisation vector, but this needs to be solely be represented in Javascript.

    Also I don't want to go to the extent of creating a run-time c# library which hooks into Javascript.

    Many thanks!

    
    
    Friday, November 22, 2013 5:39 AM

Answers