Is there a very simple way in JS to make an electronic signature that can be handled with as much ease as checksums (or hash)?
So if this is the scenario:
------------------------------------ Locked section for client ------------------------------------ | YYYY.MM.DD ......................| | ........... ......................| | Bla bla bla ......................| | Bla bla bla Bla bla bla..Bla bla .| | Bla bla bla Bla bla bla..Bla bla .| | Bla bla bla Bla bla bla..Bla bla .| | Bla bla bla Bla bla bla..Bla bla .| | Bla bla bla ......................| | Bla bla bla ......................| ------------------------------------ | HASH: HA2S2EM3CA12EDIAJED | ------------------------------------ "Open" comment textfield for clients ------------------------------------ | HE34ADOV2DSASA452123 ...(signer A)| | GHEAVOED12dHSAV2123J ...(signer B)|
HE34ADOV2DSASA452123
is generated by a private key owned by the signer.
Then the decryption (with some sort of public key) of HE34ADOV2DSASA452123
would give something like YYYY.MM.DD Bla bla bla
or return the hash (HA2S2EM3CA12EDIAJED
) of the section.
Likewise the decryption of GHEAVOED12dHSAV2123J
would give something like YYYY.MM.DD Bla bla bla
or return the hash (HA2S2EM3CA12EDIAJED
) of the section.
Note there is no requirement for this to be secured against evil master minds, just against "layman" fraud...
1 Answers
Answers 1
Try node module XML Advanced Electronic Signatures.
It uses Web Crypto for cryptographic operations. Hence it can be used both in browsers and in Node.js.
0 comments:
Post a Comment