LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2020, 09:51 AM   #1
ddenial
Member
 
Registered: Dec 2016
Distribution: CentOS, Fedora, Ubuntu
Posts: 359

Rep: Reputation: 56
Cryptography - Any recommendation?


Hello All

I want to learn cryptography, encryption, and digital certificates in Linux. Please recommend any good website or book that gives enough information that I can use in the Linux platform. I'm particularly interested in encryption with OpenSSL.

Thanks
 
Old 07-20-2020, 11:42 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
did you try the official documentation? https://www.openssl.org/docs/
 
3 members found this post helpful.
Old 07-20-2020, 12:04 PM   #3
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Also depends on what you are doing. OpenSSL is predominantly concerned with transport layer cryptography. Other libraries or technologies will be concerned with on disk or file encryption. Cryptography is a very broad subject. PKI is an entire arm all its own.
 
1 members found this post helpful.
Old 07-20-2020, 01:42 PM   #4
gouttegd
Member
 
Registered: Nov 2019
Location: London, UK
Distribution: Slackware
Posts: 92

Rep: Reputation: 161Reputation: 161
Quote:
Originally Posted by ddenial View Post
Please recommend any good website or book that gives enough information that I can use in the Linux platform.
Enough information to do what exactly? Your question seems way too vague.

Anyway, some resources that you may find useful:

For a gentle introduction to cryptography, I’ve found that the old Network Associates’ An Introduction to Cryptography, which used to be distributed with PGP in the 90s, is still one of the best primers for beginners. I also like Comparitech’s blog posts on the topic.

On the other end of the spectrum, for some thorough courses on cryptography (which may not be necessary depending on what you want to do: you don’t need to know all the gory details of cryptography just to use cryptography, fortunately), I like the Handbook of Applied Cryptography by A. Menezes, P. van Oorschot, and S. Vanstone, which is conveniently freely available online, and the Graduate Course in Applied Cryptography by D. Boneh and V. Shoup, also freely available.

For more practical informations about how to use cryptography, especially server-side, there’s the Applied Crypto Hardening book from bettercrypto.org, and the TLS guidelines from the Netherlands’ National Cyber Security Centre (you can find similar guidelines from equivalent agencies of other countries, such as UK’s NCSC, USA’s NIST, or France’s ANSSI—I tend to follow the dutch guidelines for no particular reason).

More on the client and end-user side: the CryptoParty Handbook, compiled and in in source form.

Last edited by gouttegd; 07-20-2020 at 01:45 PM. Reason: s/to /too /
 
2 members found this post helpful.
Old 07-20-2020, 03:41 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,224

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
If I may recommend a nontechnical book: Simon Singh's "The Code Book" is one of the best books I've ever read.
 
2 members found this post helpful.
Old 07-20-2020, 04:31 PM   #6
KGIII
Member
 
Registered: Sep 2015
Location: North-Western, Maine - in the mountains.
Distribution: Lubuntu 18.04 LTS
Posts: 158
Blog Entries: 6

Rep: Reputation: 64
I have a half-read copy of "Modern Cryptography: Applied Mathematics for Encryption and Information Security" on my shelf. So far, it has been pretty informative. I got distracted with a different book.

If you're going to take crypto seriously, understanding (some of) the math behind it is probably a good foundation to build from. It's a huge, huge subject.
 
2 members found this post helpful.
Old 07-21-2020, 12:22 AM   #7
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
Bruce Schneier.

My German edition is from 1996, but “Applied Cryptography” should still be a great read. I know nothing of newer editions but the 20th anniversary edition may contain additional chapters.

Damn. I just finished my translation of the table of contents from German, then thought about consulting a search engine, instead..:

Table of contents
 
1 members found this post helpful.
Old 07-21-2020, 02:55 AM   #8
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Exclamation

Quote:
Originally Posted by ddenial View Post
Hello All

I want to learn cryptography, encryption, and digital certificates in Linux. Please recommend any good website or book that gives enough information that I can use in the Linux platform. I'm particularly interested in encryption with OpenSSL.

Thanks
Digital certs - perform encryption like SSL cert

Cryptography is the study of concepts like Encryption, decryption, used to provide secure communication whereas encryption is the process of encoding a message with an algorithm. From this link: https://www.educba.com/cryptography-vs-encryption/

If you just need to learn so that you can deploy SSL on your website or server, then I think there's quite a few on the web. However, if you need to learn how to create your own encryption then I guess your Math skills has to be super good literally.

For installing SSL certs, you can search the web this keyword: "How to install SSL on Linux", or "How to use Letsencrypt", or "How to configure digital certs on Linux"

Good luck!!!
 
1 members found this post helpful.
Old 07-21-2020, 03:25 AM   #9
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,308
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
As others have asked, more details about your objectives are needed.

If you're asking about the theory and background then Serious Cryptography from 2017 by Jean-Philippe Aumasson is quite readable and has many simple, clear code excerpts illustrating what is going on.

If you're asking about applying existing utilities to a work flow, we'd have to know more about the work flow. Certificates are just keys which have been signed by other keys, n-levels deep. There are many HTTP(S) examples for using Let's Encrypt or making self-signed certificates for use with Apache2 or Nginx. So here is an example of setting up self-signed certificates with openssl for use with Mosquitto, which uses MQTT and not HTTP: https://mosquitto.org/man/mosquitto-tls-7.html Perhaps the slight differences there will help highlight the process.
 
1 members found this post helpful.
Old 07-21-2020, 08:33 AM   #10
ddenial
Member
 
Registered: Dec 2016
Distribution: CentOS, Fedora, Ubuntu
Posts: 359

Original Poster
Rep: Reputation: 56
I've never used encryption. I have come across encryption keywords many times like symmetric/asymmetric, aes/rsa, hash, md5, sha, digest, signature, salt, pgp, pki, digital certificate etc etc, but never paid attention. I always avoided encryption subject as I through its very confusing. Recently, I was configuring Cockpit for CentOS, and the webpage keep saying 'certificate is not trusted' error. So finally I thought, I should deal with this subject and get over with it.

So I want to start from scratch about encryption only that much that is required by a sys admin to deal with security issues regarding Linux server.

I think I've got now enough links to kick start the subject from scratch. I'll go through all links and see from where I should start.

Thanks everybody
 
Old 07-22-2020, 12:53 AM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
In that case, I can definitely recommend https://www.madboa.com/geek/openssl/ - lots of examples explained
 
1 members found this post helpful.
  


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
Quick and dirty cryptography guide. Linux.tar.gz Linux - Security 4 03-25-2005 02:16 PM
Cryptography Libraries makk0 Programming 4 09-21-2004 10:57 PM
hacking in linux, and cryptography zetsui Linux - Security 31 06-10-2003 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:11 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