文件加密命令 shell Encrypting Your File

Encrypting Your File

tar and gzip the file, then encrypt it using des3 and a secret key.
tar cvzf – mysql_dump.sql | openssl des3 -salt -k #YOUR PASSWORD# | dd of=encrypted_mysql_dump
That simple!

Decrypting Your File

dd if=encrypted_mysql_dump |openssl des3 -d -k #YOUR PASSWORD# |tar xvzf –

发表评论

邮箱地址不会被公开。 必填项已用*标注