LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-14-2021, 09:51 AM   #1
Erentigionation
Member
 
Registered: May 2016
Location: Somewhere between order and chaos
Distribution: Ubuntu, Slackware, Arch Linux
Posts: 31

Rep: Reputation: Disabled
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?
 
Old 05-14-2021, 01:18 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
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?
 
Old 05-24-2021, 05:55 AM   #3
Erentigionation
Member
 
Registered: May 2016
Location: Somewhere between order and chaos
Distribution: Ubuntu, Slackware, Arch Linux
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can you choose your preferred ciphers? markseger Linux - Security 4 03-18-2013 10:00 AM
what is /lib/libcrypt? melcataclysm Linux - Software 2 11-04-2009 01:50 PM
different linux modes of operation harsha7 Linux - Newbie 1 12-13-2007 10:44 AM
want to know the difference between different linux operation modes harsha7 Linux - Distributions 2 12-13-2007 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration