Digital Signature in JavaScript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Parvan Parvanov
    New Member
    • Jul 2011
    • 3

    #1

    Digital Signature in JavaScript

    Hi,
    I have an HTML input <form> with several input fields.
    When the user enters appropriate data in the input fields, and clicks "Submit", the input field data must be digitally signed with one of his digital certificates, installed in his Internet Explorer.
    The signing must be done from JavaScript/JScript (if possible), by calling standard functions from the standard MS Windows installation (no additional ActiveX, if possible).
    The user certificate with his/her Public key must be included in the signature, everything base64 encoded.

    CAPICOM may not be used, as it is deprecated by Microsoft (latest version back in 1997).

    And if possible, the best way to verify the digital signature, again by standard Windows DLL(s), called, maybe, from command prompt?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    The signing must be done from JavaScript/JScript (if possible), by calling standard functions from the standard MS Windows installation (no additional ActiveX, if possible).
    that won’t be possible without ActiveX, as JavaScript (resp. the part of JScript that doesn’t use ActiveX) is not allowed to work outside its sandbox (i.e. restricting JavaScript only to the document in the browser). Anything like using the OS’ functions is out of the scope of JS (though not necessarily out of the scope of ActiveX)

    Comment

    • Parvan Parvanov
      New Member
      • Jul 2011
      • 3

      #3
      Thank You, Dormilich,

      Is there a standard ActiveX that can be used for the purpose?
      Or do I have to write something specially for the purpose in Java/VB/C# .NET... ?

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        since I don’t have an IE and I consider ActiveX as harmful, thus I never bothered to learn about that.

        Comment

        Working...