topsecret
v0.11.0
Published
Implements encryption/decryption of strings, JSON structures and disk files
Downloads
15
Maintainers
Readme
CLI:
--encrypt-file -- decrypt-file -- generate-key . // if no file then print to console-- password-key -- password-key // if no file then print to console
==== --random-key -- password-key
- key : string
- saveKey(filename)
- password
- cypher : string
- encryptBuffer(buffer) : buffer
- decryptBuffer(buffer) : buffer
- encryptFile(srcFilename, dstFilename)
- decryptFile(srcFilename, dstFilename)
- encryptJSON(data) : buffer
- decryptJSON(buffer): JSON
- loadBuffer(filename)
- saveBuffer(filename, buffer) -LoadJSON(filename) : json
- saveJSON(filename,json)
- encryptDotEnv(filename)
- decryptDotEnv(filename)
