大家好,由于在repositories或slack上常常有些档案需要加解密,所以我製作了以下专案~
file-encryption
透过简单的指令使用密码将档案加密与解密
怎么运作?
加密
$ docker run -it -v ${PWD}:/app/file superj80820/fileencryption
输入加密密码,选择需加密的档案与输出档名,
之后加密档案就会产生。
解密
$ docker run -it -v ${PWD}:/app/file superj80820/fileencryption
输入解密密码,选择需解密的档案与输出档名,
之后解密档案就会产生。
如要批次运行,可输入以下指令
$ docker run -it -v ${PWD}:/app/file superj80820/fileencryption -c <InputFile>:<OutputFile>:<Encrypt Or decrypt>
e.g.
$ docker run -it -v ${PWD}:/app/file superj80820/fileencryption -c .env:.env.local:Encrypt -c .env:.env.test:Dencrypt