https://github.com/marcuwynu23/object-file-encrypter
Node Library to convert/retrieve encrypted object to/from file
https://github.com/marcuwynu23/object-file-encrypter
cypto encrypt node nodejs npmjs
Last synced: 7 months ago
JSON representation
Node Library to convert/retrieve encrypted object to/from file
- Host: GitHub
- URL: https://github.com/marcuwynu23/object-file-encrypter
- Owner: marcuwynu23
- License: mit
- Created: 2022-06-21T17:23:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-30T15:06:32.000Z (almost 3 years ago)
- Last Synced: 2025-01-13T15:17:26.785Z (9 months ago)
- Topics: cypto, encrypt, node, nodejs, npmjs
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Object-File-Encrypter
Node Library to convert/retrieve encrypted object to/from file
To Install
```
npm i object-file-encrypter
```
```js
const ObjectFileEncrypter = require('object-file-encrypter')let encrypter = new ObjectFileEncrypter('secret', {ttl: true})
encrypter.writeFile('hash.txt',{text: "Hello World!"},(err)=>{
if(err) console.log(err)
})encrypter.readFile('hash.txt',(err,data)=>{
if(err) console.log(err)
console.log(data)
})let hash = encrypter.writeFileSync('./.encrypt/hash',{name: "Marco Mulleda"})
console.log(encrypter.readFileSync('./.encrypt/hash'))
```### Dependency
- https://github.com/voronianski/node-object-encrypter## Contributing
How to Contribute to this Project Repository:
1. Fork the Project
2. Create your Branch
3. Commit your Changes
4. Push to the Branch
5. Open a Pull RequestThank you in advance for your contributions! Godbless and Happy Coding!