Mcrypt
mcrypt is a replacement for the popular Unix crypt command. crypt was a file encryption tool that used an algorithm very close to the World War II Enigma cipher. Mcrypt provides the same functionality but uses several modern algorithms such as AES. Libmcrypt, Mcrypt's companion, is a library of code that contains the actual encryption functions and provides an easy method for use. The last update to libmcrypt was in 2007,[1] despite years of unmerged patches.[2] Maintained alternatives include ccrypt, libressl, and others.[3]
Examples of mcrypt usage in a Linux command-line environment:
mcrypt --list # See available encryption algorithms.
mcrypt -a blowfish myfilename # Encrypts myfilename to myfilename.nc
# using the Blowfish encryption algorithm.
# You are prompted two times for a passphrase.
mcrypt -d mytextfile.txt.nc # Decrypts mytextfile.txt.nc to mytextfile.txt.
mcrypt -V -d -a enigma -o scrypt --bare # Can en/decrypt files crypted with SunOS crypt.
mcrypt --help
It implements numerous cryptographic algorithms, mostly block ciphers and stream ciphers, some of which fall under export restrictions in the United States. Algorithms include DES, Blowfish, ARCFOUR, Enigma, GOST, LOKI97, RC2, Serpent, 3-Way, Twofish, WAKE, and XTEA.
See also
References
- ^ "Libmcrypt releases".
- ^ "Libmcrypt patches".
- ^ Paragon Initiative Enterprises. "If You're Typing the Word MCRYPT Into Your PHP Code, You're Doing It Wrong".
External links
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.