I actually don't know how safe this thing is
run node encrypt.js
input the message
send the message to the receiver (after you have securely shared your two keys: messagekey.txt and signkey.txt)
the receiver runs node decrypt.js
and gets the original message you entered
install it npm install unsafe_encrypt
require it in your project via import "unsafe_encrypt"
example:
let encrypted = encrypt(input)
output: a hex string
example: let out = decrypt(input)
where input is optional (default: "output.txt")
input can be a file name (has to have a "." in it to be detected), or a previously encrypted string
out: object containing the following
status: "success" or "error"
msg: the decrypted message, even if it failed
signature: the signature that is in the encrypted message, undefined if status is "success"
expected: the signature that is expected to be in the encrypted message, undefined if status is "success"