We are still actively working on the spam issue.

Difference between revisions of "Encryption"

From InstallGentoo Wiki
Jump to: navigation, search
Line 2: Line 2:
  
 
== Windows ==
 
== Windows ==
=== [http://www.truecrypt.org Truecrypt] ===
+
 
 +
=== [http://www.truecrypt.org TrueCrypt] ===
 +
 
 
A popular encryption solution for Windows. Allows full-disk encryption.
 
A popular encryption solution for Windows. Allows full-disk encryption.
  
Line 10: Line 12:
 
A now defunct project that allowed users to mount dm-crypt/LUKS volumes in Windows. Does not have signed drivers, so Microsoft makes it a pain in the ass to install and use.
 
A now defunct project that allowed users to mount dm-crypt/LUKS volumes in Windows. Does not have signed drivers, so Microsoft makes it a pain in the ass to install and use.
  
== Linux ==
+
== [[GNU/Linux]] ==
=== dm-crypt ===
+
 
 +
=== [https://wiki.archlinux.org/index.php/Dm-crypt/Device_Encryption dm-crypt] ===
 +
 
 +
dm-crypt + LUKS is the recommended encryption solution for GNU/Linux.
 +
 
 +
=== [http://www.truecrypt.org TrueCrypt] ===
  
=== [http://www.truecrypt.org Truecrypt] ===
 
 
==== [https://github.com/bwalex/tc-play tc-play] ====
 
==== [https://github.com/bwalex/tc-play tc-play] ====
 +
 
A FOSS Truecrypt implementation to replace the official version. Supports most of Truecrypt's features.
 
A FOSS Truecrypt implementation to replace the official version. Supports most of Truecrypt's features.
  

Revision as of 20:43, 30 January 2014

Encryption is the art of encoding messages in a way that only the intended, authorized person may read it. According to Edward Snowden, strong, tested cryptographic encryption systems were said to be one of the few remaining things that work (i.e. haven't been compromised by the NSA), and that people can still rely on.

Windows

TrueCrypt

A popular encryption solution for Windows. Allows full-disk encryption.

Controversy

FreeOTFE

A now defunct project that allowed users to mount dm-crypt/LUKS volumes in Windows. Does not have signed drivers, so Microsoft makes it a pain in the ass to install and use.

GNU/Linux

dm-crypt

dm-crypt + LUKS is the recommended encryption solution for GNU/Linux.

TrueCrypt

tc-play

A FOSS Truecrypt implementation to replace the official version. Supports most of Truecrypt's features.

I Want to Implement Crypto Correctly in my Shitty App, What do I do?

The best and easiest to use public key crypto library is NaCl. Don't even try creating your own crypto algorithm or using another shitty library. The important part with crypto is always use enough randomness in your keys. If you don't, this happens (you can't really have this problem with NaCl though). The other important part is always use a unique nonce.

NaCl is real easy to use, just use crypto_box_keypair() to generate a public/private keypair, use crypto_box() to encrypt data and use crypto_box_open() to decrypt it (This is the only function that you need to check the return value, it returns -1 if the decryption failed). Why does crypto_box() use your private key to encrypt a message you ask? That's so the other can check if that encrypted message really came from you, the same reason why crypto_box_open() takes the public guy of the guy who sent you the encrypted data.

If you have a grain of intelligence, before using NaCl for anything you will read everything on the website, especially this page.

Why NaCL?

1. It's secure (Authentication, protection against timing attacks, etc..)

2. It's fast (RSA is very slow).

3. The keys are only 256 bits (It's ECC), and it's as secure as RSA 3072.

4. It isn't a bloated pile of crap filled with insecure ciphers (OpenSSL)