danang-id / simple-crypto-js

Simplified AES cryptography for safer and easier encryption and decryption processes of any JavaScript objects.
https://simplecrypto.js.org
MIT License
85 stars 27 forks source link

sign & verify messages? #10

Closed pwFoo closed 5 years ago

pwFoo commented 5 years ago

Is it possible to sign & verify messages without encrypt it?

danang-id commented 5 years ago

@pwFoo At the moment, it is not possible. The goal of this package is to make encryption process simplified as much as possible. And I believe data signing will requires more effort as it needs to handle private and public key required for sign and verify the data. While this is fine is server side, this is not recommended to be done in the client side as private key required for data signing feature should be made public. Unless client version of this package should be made only for verifying data, but creating those different version will only create inconsistent features of a package. So, I think we should stick to current goal.