How would you choose different ciphers, modes of operation, etc. in libcrypt?
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How would you choose different ciphers, modes of operation, etc. in libcrypt?
I'm confused about this. I've been looking at the man page for the Linux crypt library as well as crypt.h and a hexdump of libcrypt.so. The Wikipedia article says libcrypt provides for several different ciphers and modes of operation, but I don't see any way of specifying these in the library. There's a generic crypt() function as well as a couple thread-safe versions and some functions for working with salts. How would you use hashing algorithms like bcrypt, MD5-Crypt, and SHA2-Crypt using this library? Am I misunderstanding what Linux crypt is? I thought Linux crypt provided those three hashing algorithms?
I was under the impression that libcrypt (part of glibc) dealt with password encryption (hashing).
Are you sure you're not looking for libcrypto, which is part of OpenSSL?
Yes, I am aware of the difference between libcrypt and libcrypto. My system has both files.
EDIT: I looked at the Wikipedia article I had up and it was actually for libgcrypt, which is part of GnuPG. I seem to have missed the G in the name. I don't know why DuckDuckGo would give me an article on libgcrypt when I searched for libcrypt.
Last edited by Erentigionation; 05-24-2021 at 05:59 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.