เมนูนำทาง
Mcrypt ตัวอย่างการใช้งานเข้ารหัสไฟล์ชื่อ data.txt :
$ mcrypt data.txt
Output:
Enter the passphrase (maximum of 512 characters) Please use a combination of upper and lower case letters and numbers. Enter passphrase: พิมพ์ passphrase ที่ต้องการ Enter passphrase: พิมพ์ passphrase อีกครั้ง
ไฟล์ที่เข้ารหัสแล้วจะมีนามสกุลเป็น .nc :
$ ls data.txt.nc $ cat data.txt.nc
ถอดรหัสไฟล์ชื่อ data.txt.nc :
$ mcrypt -d data.txt.nc
Output:
Enter passphrase: File data.txt.nc was decrypted.
ตรวจสอบดูไฟล์ที่ถูกถอดรหัสแล้ว:
$ ls data.txt $ cat data.txt
ลบ input file หากกระบวนการเสร็จสมบูรณ์ (ใช้ -u option) :
$ mcrypt -u data.txt
หรือ
$ mcrypt -u -d data.txt.nc
เมนูนำทาง
Mcrypt ตัวอย่างการใช้งานใกล้เคียง
Mcryptแหล่งที่มา
WikiPedia: Mcrypt http://www.cyberciti.biz/tips/linux-or-unix-passwo... http://www.peachpit.com/articles/article.aspx?p=71... http://freeware.sgi.com/Installable/mcrypt-2.6.3.h... http://ific.uv.es/informatica/manuales/php/ref.mcr... http://mcrypt.hellug.gr/