產生長度為 20 的亂數密碼
$ openssl rand -base64 20
gpg 對稱式加密
$ tar cf _hello.tar /path/to/file_or_dir
加密
$ gpg -o _hello.tar.gpg -c _hello.tar
解密
$ gpg -o _ori_hello.tar -d _hello.tar.gpg
$ tar xf _ori_hello.tar
產生長度為 20 的亂數密碼
$ openssl rand -base64 20
$ tar cf _hello.tar /path/to/file_or_dir
加密
$ gpg -o _hello.tar.gpg -c _hello.tar
解密
$ gpg -o _ori_hello.tar -d _hello.tar.gpg
$ tar xf _ori_hello.tar