0.0.2 • Published 9 years ago

fs-auth v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

fs-auth

Auth beyond filesystem

Demo

$ cat a.txt
> hello啊 world 你是大傻逼123 ahah

$ fa lock *.txt
password> (type one)
$ cat a.txt
> 77de54ccf56eb6f7dbf99e4d3be949ab9e˥ΟFʿ84ݧÓϖXóÔIúèKÚÚF³ëKåô9298i81Ûǟm

$ fa auth *.txt
password> (type randomly)
> [ [ 'a.txt', 'auth fail' ] ]

$ fa auth *.txt
password> (type correctly)
$ cat a.txt
> hello啊 world 你是大傻逼123 ahah

CLI Usage

$ npm i -g fs-auth
$ fa lock *.txt
$ fa auth *.jpg

API Usage

$ npm i fs-auth
var fa = require('fs-auth')
var encryptedBuf = fa.lock(originalBuf, pwd)
var _originalBuf = fs.auth(encryptedBuf, pwd)
0.0.2

9 years ago

0.0.1

9 years ago