Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
learn:how-tos [2019/05/24 16:00]
127.0.0.1
learn:how-tos [2019/05/24 18:33] (current)
127.0.0.1 old revision restored (2019/04/24 11:01)
Line 1: Line 1:
-Bats les couilles de l'​Himalaya +**Brief How-tos** {{  :​cp-logo-100x33.png?​nolink&​}} 
-Bats les couillesj'vise plus le sommet + 
-Mon cœur fait ouhlalala +This page briefly explains how to use various tools which enhance your privacyanonymity and overall security. The guides are written in an easy to understand, step-by-step manner. The difficulty & time required for most of them don't provide any reason to //not// secure your communications and blurring your digital traces. 
-Crime passionnel que j'​commets + 
-Sur ton cœurj'fais trou de boulette +FIXME This page has grown and is hard to navigate in. Recommended re-arrangement:​ 
-J'fais tache de sang sur le pull +  * Move each guide under separate articlenot headline 
-Je désire nullement vous connaître +  * People attending crypto parties carry different devices with different operating systems. Therefore, do not arrange stuff under Windows, OSX, iOS, Android etc, but instead under topics, and then explain how to do that for each system. This is because general, cross-platform introduction to each technology (e.g. what is E2EE messaging or FDE) is usually required, and having a copy of what is is FDE for each OS creates pointless redundancy. 
-Ni toini ces fils de putes +  * Make this a landing page with short explanation of each tech and add link to actual article(s). 
-Je me tire d'ici si j'm'écoute + 
-Sang corse mélangé bougnoule + 
-La Lunej'aime plusj'vous la laisse +====== Security warning ====== 
-Je m'endors sous dorésous gnôle + 
-J'suis ni de chez moi ni de chez vous +Note however, that security is a process, not a tool. You need at least basic understanding to assess the degree of security or [[:​connect:​resources#​why_there_is_no_100_anonymity|anonymity]] a tool can give you. That said, treat it like a game. The worst thing which can happen if you use these tools for your everyday business is that you are just as unsecure, unencrypted or in the open as you would be anyway. 
-Elle veut la biseelle veut que j'la baise + 
-J'​connais la routej'​connais l'​adresse +The use of security sensitive activity (which is both prohibited and can be persecuted by society and/or government) without deep understanding is **strongly** discouraged. 
-Je t'encule sur le continent ​d'​Hadès + 
-Sale comme ta neuchmèches courtes + 
-Forte comme la ppe-f' ​que j'écoule +====== Guides to Crypto Tools ====== 
-Je tire la gueuleje n'​écoute +  * [[:​learn:​handbook|The CryptoParty Handbook]] 
-Que mon âme seulemektoub +  * [[https://​securityinabox.org/​|Tactical Technology Collective - Security-in-a-Box]] 
-J'vis dans un rêve érotique +  * [[http://​www.tcij.org/​resources/​handbooks/​infosec|Center for Investigative Journalism - Information Security for Journalists]] 
-Où j'parle peu mais j'caresse le monde +  * [[https://​flossmanuals.net/​an-open-web/​|FLOSS Manuals - An Open Web]] 
-J'meurs dans un cauchemar exotique +  * [[https://​www.privacytools.io/​|Privacy Tools]] 
-Où la Terre ressemble à ma tombe + 
-Igopourquoi toitu parles ​en Igo +====== Alternatives to common online services and programs ====== 
-Si ça se tueouaisdis-moi qui signe + 
-Pas d'honneurtoitu sens d'ici +  * [[https://​prism-break.org|https://​prism-break.org]] 
-WAllahbaba m'​a ​dit "mon filsnannan" +  * [[https://​alternatives.tacticaltech.org/​|https://​alternatives.tacticaltech.org/​]] 
-Toipas calculer ces pédales +  * [[https://​github.com/​redecentralize/​alternative-internet|https://​github.com/​redecentralize/​alternative-internet]] 
-Moij'ai donné pendant longtemps + 
-Puisj'ai perdu mes pétales +====== Why is mass surveillance a problem? ====== 
-Au DD + 
-J'la passela détaillela pé-coula vi-sserdes regrets devant ton bébé +  * [[:​masssurveillance|cryptoparty.in/​MassSurveillance]] 
-J'sors de chez toij'reprends ta voiture mal garée puis j'retire ton PV + 
-J'recherche un billetdes affairesdes plans dans la planqueun peu trop peiné +====== Quotes ====== 
-J'fais un bisou à mes cafards dans la cave du sixles pectoraux gainés + 
-Les BACqueux té-ma parce que les ients-cli ne tomberont jamais sur messagerie +"//​Encryption works. Properly implemented strong crypto systems are one of the few things that you can rely on//." \\ <wrap lo>​~[[http://​www.theguardian.com/​world/​2013/​jun/​17/​edward-snowden-nsa-files-whistleblower|Edward Snowden]] (on [[http://​www.theguardian.com/​world/​the-nsa-files|NSA surveillance]])</​wrap>​ 
-Ehpotodémarre dans la junglej'y suis H24j'y fais des singeries + 
-La ruej'la dévale à toute allure avec du Gucci comme Mitch +"//All the headlines saying [[https://​twitter.com/​search?​q=#​NSA&​f=realtime|#​NSA]] breaks encryption are wrong; correct phrase is NSA works with vendors to sabotage security technology//​."​ \\ <wrap lo>​~[[https://​twitter.com/​doctorow/​status/​376011707643994112|Cory Doctorow]] (on [[http://​www.theguardian.com/​world/​2013/​sep/​05/​nsa-gchq-encryption-codes-security|NSA Backdoors & 'cracking'​ encryption]])</​wrap>​ 
-J'​me ​promène dans les beaux quartiers avec le seum qui fait peur aux riches + 
-Que la famillepersonne nous inquiète jusqu'au dernier gramme +---- 
-Toujours dans mon neuf-un parce que j'suis baisé par Paname + 
-Sanssanssans le bénéf' de la rue +====== Web Browsing ====== 
-J'aurais jamais niqué le game (gamegamegame) + 
-Me sens pas trop humainun peu comme mes igos habitésyah +To get an idea of what web browsing actually isread the chapter **[[http://​cryptoparty.is/​handbook/​chapter_02_understanding_browsing/​chapter_02_understanding_browsing.html|Understanding Browsing]]** of the CryptoParty Handbook. In brief: 
-Y'​a ​du sang à videryah + 
-Au DDDDDD +  * When you visit a website you give away information about yourself to the site owner, unless precautions are taken. 
-Deuxièmes nes-graij'suis effacéyah +  * Your browsing on the Internet may be tracked by the sites you visit and partners of those sites. 
-T'as reconnu le criigo t'es animal +  * Visiting a website on the Internet is never a direct connection. Many computers, owned by many different people are involved. Secure connections ensure that your browsing can not be read in between you and the server. 
-Mes rêvesj'connais le prixle canon à ny-Ma +  * What you search for is of great interest to search providers (mostly for targeted advertising). 
-Au DD + 
-Que la famille dans le bât', on te la push taille-dé au DD +Then you can see what you just learned by facing a virtual mirror to yourself on 
-Pas mélangécœur d'étrangerrien n'​a ​changé + 
-Ce qui doit arriver va arriveryah +  * [[http://​ip-check.info|http://​ip-check.info]] 
-C'est peut-être mon dernier album +  * [[http://​ifconfig.me|http://​ifconfig.me]] 
-Peut-être ma dernière puta +  * [[http://​smart-ip.net/​geoip|http://​smart-ip.net/​geoip]] 
-Peut-être mon dernier sourire de toi +  * [[https://​panopticlick.eff.org|https://​panopticlick.eff.org]] 
-Dans mon ungadans mon unga + 
-Pas plus de haine que d'amourque j'largue entre mes tours +===== Browser ===== 
-Moins d'humains après minuitje sors casser mon tour + 
-Sur un nuage de l'​Enfer +[[https://​www.mozilla.org/​en-US/​firefox/​|Firefox]] is an open source web browser that respects your privacy. If you're not using it already you should do from now on. It's as good as Chrome, fast and the most extendable browser with most AddOns. It's available for Windows, Mac & Linux. 
-Viens, on se cassemon frèreavant qu'​on ​se perde + 
-Au DD +===== Tor Browser ===== 
-J'la passela détaillela pé-coula vi-sserdes regrets devant ton bébé + 
-J'sors de chez toij'​reprends ta voiture mal garée puis j'​retire ton PV +  * [[https://​www.torproject.org/​download/​download-easy.html.en|Download the Tor Browser]] 
-J'​recherche un billetdes affairesdes plans dans la planqueun peu trop peiné +  * Install & [[https://​www.torproject.org/​download/​download-easy.html.en#​warning|read the warning]] 
-J'fais un bisou à mes cafards dans la cave du sixles pectoraux gainés +  * Use! (instead of your normal browser) 
-Les BACqueux té-ma parce que les ients-cli ne tomberont jamais sur messagerie +  * Before browsing [[:​learn:​how-tos#​Tor Hidden Services|.onion sites]] make sure to click on the {{https://​i.imgur.com/​wPP9v0M.png?​nolink&​30x24}}in the upper left of the browser and choose "​Forbid Scripts Globally"​. This prevents JavaScript from leaking potentionally personally identifiable information - disable for individual sites if needed. 
-Eh potodémarredans la jungle j'y suis H24j'y fais des singeries + 
-La ruej'la dévale à toute allure avec du Gucci comme Mitch +  * You should also set the security level to High and lower it only if it has major effect on your browsing experience. The Security setting can be found under the Tor logo in navigation bar. 
-Je me promène dans les beaux quartiers avec le seum qui fait peur aux riches+ 
 +  * [[https://​www.eff.org/​pages/​tor-and-https|Here is an animated diagram to help explain more]] 
 +  * [[https://​media.torproject.org/​video/​2012-10-21-cryptoparty/​UsingTorByAndrewAndSteve.mov|"​Using Tor"]] from CryptoParty Boston. 
 + 
 +===== Browser Plugins ===== 
 + 
 +==== HTTPS Everywhere ==== 
 + 
 +  * [[https://​www.eff.org/​https-everywhere|HTTPS Everywhere]] has a big list of websites that support encrypted connectionsand whenever you connect to them silently switches to the encrypted variant. That little "​s"​ in the URL is what it is about. 
 + 
 +==== Block Advertising and Tracking ==== 
 +  * [[https://​adblockplus.org|Adblock Plus]] blocks bannerspop-ups and video ads. 
 +  * For Firefox there also is [[https://​addons.mozilla.org/​​en-us/​​firefox/​​addon/​​adblock-edge/​​|Adblock Edge]] which is a fork of AdBlock Plus without ​the [[https://​​adblockplus.org/​​en/​​acceptable-ads|'​acceptable ads']] feature  
 +  * [[https://​​disconnect.me/​​|Disconnect.me]] ([[https://​​github.com/​​disconnectme/​​disconnect|free and open source with GPLv3 license]]). 
 +  * [[https://​github.com/​gorhill/​uBlock|uBlock Origin]] is an add-on for Firefox and Chrome that blocks a variety of advertisement and tracking companies – which are one and the same in many cases. 
 +  * [[https://​www.eff.org/​privacybadger|Privacy Badger]] does a similar jobbut based on heuristics rather than block lists. 
 + 
 +==== Scripting ==== 
 + 
 +Advanced. Only enable JavaScript, and especially plugins like Java, and Flash for sites you //​trust.//​ 
 + 
 +  * [[https://​github.com/​gorhill/​uMatrix|uMatrix]] 
 + 
 +==== Identifiable Browser configurations ==== 
 + 
 +  * The only serious attempt to thwart browser fingerprinting is the [[https://​torproject.org|Tor Browser]]. 
 + 
 +==== Request Policy ==== 
 + 
 +Advanced. 
 + 
 +  * [[https://​www.requestpolicy.com/​|Request Policy]] is an open source Firefox extension to control cross-site requests. 
 + 
 +==== Certificate Patrol ==== 
 + 
 +Your browser trusts many certification authorities and intermediate sub-authorities quietly, every time you enter an HTTPS web site. The Firefox AddOn [[https://​addons.mozilla.org/​en-US/​firefox/​addon/​certificate-patrol/​|Certificate Patrol]] reveals when certificates are updated, so you can ensure it was a legitimate change. 
 + 
 +//FIXME Please review AddOns such as [[https://​addons.mozilla.org/​en-us/​firefox/​addon/​betterprivacy/​|BetterPrivacy]],​ [[https://​addons.mozilla.org/​en-us/​firefox/​addon/​beef-taco-targeted-advertising/​|BeefTaco]],​ [[https://​addons.mozilla.org/​en-us/​firefox/​addon/​smart-referer/?​src=dp-dl-othersby|SmartReferer]],​ [[https://​addons.mozilla.org/​en-us/​firefox/​addon/​anonymox/​|anonymoX (proxies!)]]//​ 
 + 
 +===== Web search ===== 
 + 
 +Another thing you might do often on the web is use Google to search things. There are plenty of alternatives to Google who all state that they keep minimal or no IP logs, but blind trust isn't as good as using Tor Browser to actively hide your IP. Most popular ones are: 
 + 
 +  *  [[https://​startpage.com/​|https://​startpage.com/​]] 
 +      * proprietary,​ hosted in the USA/​Netherlands,​ and provides you with anonymized Google search results (including images) 
 +  *  [[https://​duckduckgo.com/​|https://​duckduckgo.com/​]] 
 +      * partly proprietary,​ hosted in the USA, and provides you with anonymized Yahoo search results 
 +  *  [[https://​searx.me/​|https://​searx.me/​]] 
 +      * open source, selfhostable meta-search engine, [[https://​github.com/​asciimoo/​searx/​wiki/​Searx-instances|list of public instances]] 
 +  *  [[https://​search.disconnect.me/​|https://​search.disconnect.me/​]] 
 +      * Anonymized results using Google, Bing, Yahoo!, or DuckDuckGo. 
 +  *  [[https://​metager.de/​tor/​en/​|https://​metager.de/tor/en/]] 
 +      * from SuMa e.V.a german non-profit organisation that supports free access to knowledgeprovides Web search as a TOR hidden service 
 + 
 +  * Though if you'​d ​like to keep using google at least use its encrypted version: [[https://​encrypted.google.com|https://​encrypted.google.com]]. 
 + 
 +  * In **Chrome** ​ go to settings→Manage Search Engines and add a search engine (example url: [[https://​encrypted.google.com/​search?​q=%s|https://​encrypted.google.com/​search?​q=%s]]). For startpage go here: [[https://​startpage.com/​eng/​download-startpage-plugin.html|https://​startpage.com/​eng/​download-startpage-plugin.html]] 
 +  * In **Firefox** ​ you can do the same for startpage but might have problems with encrypted.google in recent versions of firefox. Go to the page you intend to make your search engine and select the logo to the right of your search bar (top right)and select Add "​[searchEngineName]"​ to change search engines. 
 + 
 +===== General Tips ===== 
 + 
 +  * Regularly run [[https://​www.piriform.com/​ccleaner|CCleaner]] (Windows & Mac) or [[http://​bleachbit.sourceforge.net/​|BleachBit]] (Windows & Linux) for deleting cookies and various other junk. 
 +  * Check the privacy settings of websites. For example if you have a google account you can deactivate the logging of your searches and the personalized advertisements. Log in to your account (android phones come with google accounts) and change [[http://​www.google.com/​goodtoknow/​online-safety/​security-tools/​|various settings]] on the [[https://​www.google.com/​dashboard/​|dashboard]] 
 +  * Opt out from various tracking advertising firms using [[http://​www.networkadvertising.org/​choices/​|http://​www.networkadvertising.org/​choices/​]] & [[http://​www.aboutads.info/​choices/​|http://​www.aboutads.info/​choices/​]] 
 +  * Check the privacy settings of applications that you use 
 +  * If you use Windows do a File System Check once in a while by entering "sfc /​scannow"​ into the console 
 +  * Disable all Plugins in your Browser or set them to "Ask to Activate"​ (in Firefox) 
 +  * Don't use a password across multiple sites or the same as the one you use to encrypt ie your hard drive. Also don't google it or anything alike. [[:​documentation:​password|More tips on good passwords]] 
 +  * Use antivirus software and a firewall. Do regular scans & updates 
 +  * Regularly update all of the software you find on this page 
 + 
 + 
 + 
 +====== Insecure software ======  
 +Update your software frequently and uninstall (or at least deactivate) insecure software or software for which vulnerabilities have recently been disclosed and not yet patched. 
 + 
 +Uninstall Adobe Flash. 
 + 
 +====== Own Website ====== 
 + 
 +The following is for people running their own website. 
 + 
 +  * If your website has facebook-like buttonssee [[http://​www.h-online.com/​features/​Two-clicks-for-more-privacy-1783256.html|2-clicks for more privacy]] 
 +  * Make your website available via HTTPSor even better, redirect unencrypted connection attempts to the encrypted version. First follow these instructions for [[https://​github.com/​ioerror/​duraconf/​blob/​master/​startssl/​README.markdown|getting the certificate]] then install it as in the appropiate tutorial [[https://​www.globalsign.com/​support/​installcert.php|here]]. Secure Sockets Layer provides an encrypted connection between the client and the server/​certificate holder. 
 + 
 +===== Closing Unused Ports (Linux) ===== 
 + 
 +**Check open ports.** 
 + 
 +From the command line, you can see which ports are open on which interface by typing: 
 + 
 +<​code>​ 
 +      sudo lsof -i -P | grep LISTEN 
 +</​code>​ 
 + 
 +''​*'' ​ means it is listened on all interfaces (reachable from the outside) 
 + 
 +''​localhost'' ​ means the ports are only opened locally (not reachable from the outside). 
 + 
 +Services can be removed, disabled, or configured to only listen locally. 
 + 
 +====== Email ====== 
 + 
 +===== Which provider? ===== 
 + 
 +With email, you //​always// ​ have to trust the operator. So, no matter what, try to use real end-to-end encryption like OpenPGP. \\ Check [[https://​prism-break.org/​en/​subcategories/​web-services-email-accounts/​|https://​prism-break.org/​en/​subcategories/​web-services-email-accounts/​]] or [[http://​prxbx.com/​email/​|http://​prxbx.com/​email/​]] for recommendations. 
 + 
 +One good Email provider is [[https://​protonmail.com/​|ProtonMail]]. 
 + 
 +For more control over your email, you have to either [[:​learn:​run_your_own_mail_server|run your own mail server]] or have a good //​personal// ​ trust relationship with the provider. \\ There are some ways to get a new email account with a bit more privacy: 
 + 
 +  * Ask a geek/nerd friend 
 +  * Pay for the service (instead of paying with your data) 
 +  * Combine the above (actually the very best option) 
 +  * Use email from a non-profit organization (and donate money if you can) 
 +      * See [[https://​we.riseup.net/​riseuphelp+en/​radical-servers|radical servers]] for some options. 
 + 
 +===== Crypto! (GPG-Encryption) ===== 
 + 
 +As you may know, your email goes through the data traffic like a postcard in snailmail: Everyone can read it! So, like snailmail, it would make sense to put your emails in a closed envelope. One possible envelope is called **GPG**. \\ The Pretty Good Privacy software was originally written by Phil Zimmermann, and is now owned by Symantec. The means of encryption defined by that software are also called PGP - these standarts are now freely available as OpenPGP which derived from the original PGP. \\ The GPG software is an independent implementation of the OpenPGP standards, so you can use it to exchange encrypted messages with people using other OpenPGP implementations (and Symantec's PGP). 
 + 
 +==== Warning! ==== 
 + 
 +While email encryption is still mostly securethe nature of PGP messages has two inherent problems. 
 + 
 +  - **Lack of forward secrecy**: PGP uses long term decryption keys that never change. If at any point in future your device is stolenaccessed or hacked, all past messages recorded by powerful attackers can be decrypted, even if you have deleted messages from your own devices. 
 +  - **Lack of deniability**:​ In PGP, the authorship of messages is verified with what are called digital signatures. These digital signatures can only be created by the sender, and any message you send can be proven to have been written by you. 
 + 
 +These problems have since been solved in modern end-to-end encrypted messaging systems like OTR, Signal, etc. that are also easier to use (see below). Therefore, unless you absolutely have to, it is advised to always use modern messaging applications instead of PGP. 
 +==== Understand ==== 
 + 
 +For your first time, you should get a basic understanding at least of the concept of asymmetric encryption (often called **public key encryption**). Please watch one of those videos before you begin using it: 
 + 
 +  * [[http://​www.bbc.co.uk/​blogs/​webwise/​2012/​04/​secrets-of-online-security.shtml|3 minutes]]: BBC science presenter Dr Yan Wong explains (without mathematics) the principle of how Alice and Bob can use "​digital padlocks"​ to protect their messages from being read by Ed the eavesdropper 
 +  * [[https://​www.youtube.com/​watch?​v=CR8ZFRVmQLg|2 minutes]]: explaining symmetcric and asymmetric 
 +  * [[https://​www.youtube.com/​watch?​v=M0K4ddNzmTw|4 minutes]]: maybe watch the whole series! 
 +  * [[https://​youtu.be/​MpwkB-F5dvg|5 Minuten]]: E-Mail-Verschlüsselung:​ Der digitale Briefumschlag (DE) 
 +  * [[https://​www.youtube.com/​watch?​feature=player_embedded&​v=V9k0mnIFuOI|5 minutes]]: PGP benutzen Stopmotion-Film (DE) 
 + 
 +==== Use a Mailclient with GPG support ==== 
 + 
 +A Mailclient is an application for your mail on your computer. It makes mailing even more convenient! 
 + 
 +=== 1. Install a mailclient === 
 + 
 +We recommend [[https://​www.mozilla.org/​en-US/​thunderbird/​|Thunderbird]],​ but there are plenty of good ones out there! (see [[https://​prism-break.org/​en/​subcategories/​windows-email-clients/​|https://​prism-break.org/​en/​subcategories/​windows-email-clients/​]] [[https://​prism-break.org:​en:​subcategories:​gnu-linux-email-clients:​index|or for Linux]]] for a list). 
 + 
 +=== 2. Install GnuPG === 
 + 
 +  * **Windows**:​ 
 +      * [[http://​gpg4win.org/​|http://​gpg4win.org/​]] 
 +  * **Mac**: 
 +      * [[https://​gpgtools.org/​|https://​gpgtools.org/​]] 
 +      * [[https://​www.youtube.com/​watch?v=Rt4MFkbr6co|GPGTools on Mac screencast]] 
 +      * [[http://​sourceforge.net/​projects/​macgpg/​|http://​sourceforge.net/​projects/​macgpg/​]] 
 +  * **Linux (e.g. Ubuntu)**:​ 
 +      * comes with GPG installed by default 
 + 
 +=== 3. Plugin Enigmail === 
 + 
 +[[http://​www.enigmail.net/​download/​|Enigmail]] is a plugin for Thunderbird that brings thunderbird and GnuPG together. \\ 
 +Find the add-on manager in your Thunderbird (upper right side menu) and install enigmail there. On Linuxinstall it via your software manager. The package is usually called //​enigmail//​. 
 + 
 +=== 4. Passphrase === 
 + 
 +Now you want to give yourself some time to think about a nice [[:​documentation:​password|passphrase]] and making sure you remember it. 
 + 
 +=== 5. Generate Keypair === 
 + 
 +  * Click //​OpenPGP// ​ in the Thunderbird menu and 
 +  * choose //OpenPGP Setup Assistant// ​ or //… Wizard// ​ (depending on version). 
 +  * Follow the instructions. When not surethe default value is usually safe. 
 + 
 +Afterwards, it will ask you if you want to make a revocation certificate. Do so, and store it on a safe medium (that is either a print-out or a CD you burn it to and then put away in a safe place). \\ If you have already generated a keypair or want to follow instructions like the ones given keypair or want to follow instructions like the ones given [[https://​alexcabal.com/​creating-the-perfect-gpg-keypair/​|by Alex Cabal]], you should run the //Setup Assistant// ​ anyway and then choose the already generated keypair at the appropriate step of the wizard. For a more detailed description of the mechanism of public-key encryption, please refer to keypair at the appropriate step of the wizard. For a more detailed description of the mechanism of public-key encryption, please refer to [[http://​www.gnupg.org/​gph/​en/​manual.html|The GNU Privacy Handbook]]. 
 + 
 +=== 6. Publish Public Key === 
 + 
 +If you now think "//WTF publish my KEY!!11!!!//"​ please watch the above videos again :P \\ Link it on your website/​message it your friend and/or get it up a keyserver such as [[https://​keyserver.pgp.com/​vkd/​GetWelcomeScreen.event|this one]] 
 + 
 +To get a copy of a public key on Linux with GNUPG run the following command: 
 + 
 +<​code>​ 
 +gpg --export --armor <your GPG ID> 
 +</​code>​ 
 + 
 +this will generate output starting with '—–BEGIN PGP PUBLIC KEY BLOCK—–'​ and ending with '​—–END PGP PUBLIC KEY BLOCK—–'​. '​–armor'​ makes the key read- and printable. 
 + 
 +=== 7. Get your recipient'​s Public Key === 
 + 
 +If your intended recipient doesn'​t already use PGP get him to work through this tutorial first. Then get his public key which you can find on a keyserver/​website if he doesn'​t message you it directly. On Linux using GNUPGyour intended recipient should follow the process in step 6 and output it to a fileonce you've received this file use the command: 
 + 
 +<​code>​ 
 +gpg --import /​path/​to/​file.key 
 +</​code>​ 
 + 
 +The key will now be available to be accessed through GNUPG and thus through Enigmail or other programs that utilise GNUPG. 
 + 
 +From the command lineyou can see your local collection of keys by typing: 
 + 
 +<​code>​ 
 +      gpg -k 
 +</​code>​ 
 + 
 +To find a particular key, type: 
 + 
 +<​code>​ 
 +      gpg -k <part of name/​email/​key ID> 
 +</​code>​ 
 + 
 +To display or search keys in Thunderbird/​Enigmail:​ 
 + 
 +  - Choose “OpenPGP” in the Thunderbird menu 
 +  - Choose “Key management” 
 +  - Type part of a name or email in the search box, or check “Display All Keys by Default” 
 + 
 +=== 8. Write your first encrypted email === 
 + 
 +Only encrypt //plain text// ​ and note that subject lines are not encrypted. 
 + 
 +You can use the command line to encrypt a file or a message: 
 + 
 +<​code>​ 
 +      gpg -ase -r <​recipient's key ID> -r <your key ID> <input file name> 
 +</​code>​ 
 + 
 +This will produce ​file (ending in .asc) that you can attach or paste into an email. 
 + 
 +To send encrypted mail with Thunderbird/​Enigmail:​ 
 + 
 +  * Make sure auto-saving of drafts is disabled (Tools → Options → Composition → Generaluncheck Auto Saveor Edit → Preferences → Composition → General, uncheck Auto Save). 
 +  * Compose a message as you normally would. 
 +  * Click on OpenPGPand check Encrypt Message (and, optionally, Sign Message). 
 +  * Click Send. 
 + 
 +Depending on how Thunderbird is set upit may give you a list of keys to choose from at this point, or it may select keys automatically based on email addresses (This behavior is configurable:​ OpenPGP → Preferences → Key Selection.). If you see the list of keys, make sure the recipient's key and your key are checked, and click OK. 
 + 
 +To decrypt a message from the command linesave the encrypted message to a file, and type: 
 + 
 +<​code>​ 
 +      gpg <​encrypted file name> 
 +</​code>​ 
 + 
 +To decrypt mail with Thunderbird/​Enigmail:​ 
 + 
 +  * Click on the messge. 
 +  * After a momentthe passphrase entry box should appear; enter your passphrase. 
 + 
 +To verify a signature:​ 
 + 
 +If the message was signedthere should be a “Good signature” message (visible in the output of the command-line clientor a green bar above the sender information in Thunderbird). If there is a “signature verification failed” message insteadit could mean that the message was tampered with, or it could just mean that you don't have the sender'​s public key. 
 + 
 +==== GPG with Outlook 2010/2013 ==== 
 + 
 +GPG also works with Outlook if that's what you're using. 
 + 
 +  * Get [[http://​www.gpg4win.org/​download.html|GPG4Win]]. You should check GPA & Kleopatra during installation. 
 +  * Open up Kleopatra and go to File→New Certificate→Create a personal OpenPGP key pair. 
 +  * Fill in a name and your email address. Open up "​Advanced"​ and also check "​Authentication"​. Then click Next & Create Key. 
 +  * Enter a [[http://​www.cryptoparty.in/​documentation/​password|passphrase]]. Make sure you don't forget it! 
 +  * (Optional) make a backup of it somewhere and upload it to directory service. 
 +  * Now get the [[https://​code.google.com/​p/​outlook-privacy-plugin/​|Outlook Privacy Plugin]]. 
 +  * Install it and if you need to do so get the [[http://​www.microsoft.com/​en-us/​download/​details.aspx?​id=30653|.NET Framework 4.5]]. If there'​s a problem also [[http://​www.microsoft.com/​en-us/​download/​details.aspx?​id=39290|this]]. 
 +  * Start up Outlook and make a new email. In the right upper panel you can encrypt (and also sign) your email. 
 +  * Before you send an encrypted email you need your recipients public key block. For testing purposes you can create another account (with a trashmail address) which you delete later. Otherwise you find such keys on websites/​directory services or elsewise. 
 +  * Once you have the recipients public key copy it (from & including "​—–BEGIN PGP PUBLIC KEY BLOCK—–"​ until end)open up GPA and simply press ctrl+v (paste). 
 +  * Now make a new email in outlook and fill in the recipients' ​email address. 
 +  * Enter whatever text you want to send. And then click "​encrypt"​ in the right upper corner. 
 +  * Make sure your recipient has your public key as well. 
 + 
 +To decrypt a message you received double click the email and then coose "​decrypt"​ in the right upper corner and enter your password. 
 + 
 +==== More Information ==== 
 + 
 +Maybe it wasn't that easy for you to do it, or maybe you want to know more. In either case, please have a look at the following links to some guides and more information:​ 
 + 
 +  * [[http://​www.enigmail.net/​documentation/​quickstart-ch1.php|http://​www.enigmail.net/​documentation/​quickstart-ch1.php]] 
 +  * Slides: [[https://​github.com/​micahflee/​slides/​blob/​master/​2012/​10/​oakland_cryptoparty_intro_to_public_key_crypto.pdf?​raw=true|Introduction to Public Key Cryptography]] from CryptoParty Oakland (U.S.) 
 +  * There is an excellent visual explanation of [[http://​en.wikipedia.org/​wiki/​Diffie-Hellman_key_exchange|Diffie-Hellman key exchange]] on [[https://​www.youtube.com/​watch?​feature=player_detailpage&​v=YEBfamv-_do#​t=126s|YouTube]]. Please watch! 
 +  * [[https://​securityinabox.org/​en/​chapter_7_1|Wonderful tutorial explaining everything!]] 
 + 
 +**[[:​gpgtroubles|Having troubles? Go here]]** 
 + 
 +=== 9. Use Tor Birdy === 
 + 
 +You can make your communication extra safe by using Tor Birdy, a Thunderbird add-on for the Tor Browser 
 + 
 +  * If you don't have Thunderbirdget it for free here: [[http://​www.getnow.com/​windows/​communications/​e-mail-clients/​mozilla-thunderbird/?​refid=659&​gclid=CNHhn7r4o7wCFUNd3god0hsAsA|Thunderbird e-mail client]] 
 +  * Then you need to install Torso follow this [[:​learn:​how-tos#​tor_browser_bundle|guide for setting up the Tor Browser Bundle above]] 
 +  * Next[[https://​addons.mozilla.org/​en-us/​thunderbird/​addon/​torbirdy/​|download Tor Birdy]] or choose the [[https://​addons.mozilla.org:​thunderbird:​downloads:​file:​199062:​index|direct link to the latest version]] and save it somewhere on your computer 
 +  * in Thunderbirds,​ go to Extras or Tools –> Add-ons –> install add-on from file (//in German: das Zahnrad wählen und dann Add on aus Datei installieren//​) 
 +  * then you need to adjust your Proxy to 9150 which you can do at Tools (//​Extras//​) –> Settings (//​Einstellungen//​) –> Network (//Netzwerk & Speicherplatz//​) –> Settings (//​Einstellungen//​) –> Manual Proxy Configuration (//Manuelle Proxy-Konfiguration//​). Type "​9150"​ in the field "​Port"​ at SOCKS-Host 
 +  * install it and restart Thunderbird 
 +  * NOTE: You now always have to open your Tor Browser to use Tor Birdy in Thunderbird. Otherwise e-mails fail to be sent instead. 
 +  * for troubleshooting,​ refer to [[https://​trac.torproject.org/​projects/​tor/​wiki/​torbirdy#​SetupSteps|the Tor Project Wiki]] 
 + 
 +====== GPG-Encryption beyond Email (GPA) ====== 
 + 
 +If you'd like to use GPG (for an explanation of GPG please see [[:​learn:​how-tos#​crypto_gpg-encryption|the upper section "​Crypto! (GPG-Encryption)"​]]) for other purposes besides just Email the video-tutorial beneath might help you out. \\ 
 +If you're using Windows simply install the //The GNU Privacy Assistant// ​ (GPA) of the [[http://​www.gpg4win.org/​|GPG4Win]]-Installer and use the Clipboard to encrypt and decrypt messages by hand. Tutorial: 
 + 
 +  * [[https://​www.youtube.com/​watch?​v=m56dsDc2808|How to use GPG Encryption (with GPA)]] 
 + 
 +====== Chat ====== 
 + 
 +===== OTR ===== 
 + 
 +Off-the-Record (OTR) messaging allows you to have private conversations over instant messaging by providing:​ 
 + 
 +  * **End-to-end encryption**:​ No one else can read your instant messages. 
 +  * **Authentication**:​ You can verify that end-to-end encryption is not under [[https://​en.wikipedia.org/​wiki/​Man-in-the-middle_attack|man-in-the-middle-attack]]. 
 +  * **Deniability**:​ The messages you send do not have digital signatures that are checkable by a third party. Anyone can forge messages after a conversation to make them look like they came from you. Howeverduring a conversation,​ your correspondent is assured the messages he sees are authentic and unmodified. 
 +  * **Forward secrecy**: If you lose control of your private keys, no previous conversation is compromised (assuming control of log files was not lost at the same time). 
 + 
 +A variety of chat clients are available which use OTR: 
 + 
 +Clients that support the [[https://​otr.cypherpunks.ca/​|OTR-plugin]] 
 +  * [[https://​gajim.org|Gajim]] (Windows, Linux, MacOS) 
 +  * [[https://​pidgin.im|Pidgin]] (Windows, Linux, MacOS) 
 +  * [[https://​adium.im/​about/​|Adium]] (MacOS only) 
 + 
 +Clients with built in support for OTR 
 + 
 +  * ChatSecure ([[https://​itunes.apple.com/​us/​app/​chatsecure/​id464200063?​mt=8|iOS]],​ Android: [[https://​play.google.com/​store/​apps/​details?​id=info.guardianproject.otr.app.im|Play Store]], [[https://​guardianproject.info/​releases/​chatsecure-latest.apk|APK]]) 
 +  * [[https://​github.com/​siacs/​Conversations#​conversations|Conversations]] (Android) 
 +  * [[https://​trac.torproject.org/​projects/​tor/​wiki/​doc/​TorMessenger#​Downloads|Tor Messenger]] (WindowsLinuxMacOS)(**In beta!**) 
 + 
 +=== How to use === 
 +  * [[https://​theintercept.com/​2015/​07/​14/​communicating-secret-watched/​|Chatting in Secret While We’re All Being Watched ]] (fantastic article by Micah Lee) 
 +  * [[https://​ssd.eff.org/​en/​module/​how-use-otr-mac|How to: Use OTR for Mac]] 
 +  * [[https://​www.bestvpn.com/​blog/​30751/​tor-project-releases-secure-encrypted-tor-messenger-how-to-use-it/​|Tor Messenger how-to]] 
 + 
 +Advanced: 
 + 
 +  * [[https://​www.calyxinstitute.org/​education/​how-to-using-jabber.calyxinstitute.org-server-via-its-tor-hidden-service-with-pidgin-and-off-the-record|Routing messages via public Tor Hidden Service XMPP servers]] 
 + 
 +===== Signal protocol ===== 
 + 
 +Signal-protocol is a modernized version of OTR-protocol that is designed to work in asynchronous environments such as on smartphones. This is because on smartphones apps open and close so frequentlyOTR-sessions (that need to be established for each time they're used) become inconvenient. 
 + 
 +More information 
 +  * [[https://​www.youtube.com/​watch?​v=tOMiAeRwpPA#​t=12m45s|Next Generation Threats]] by Moxie Marlinspike 
 +  * [[https://​whispersystems.org/​docs/​|Technical documentation]] 
 + 
 +Applications that use Signal protocol or similar (so called [[https://​en.wikipedia.org/​wiki/​Double_Ratchet_Algorithm|double-ratchet algorithm]] based) protocols 
 + 
 +  * [[https://​signal.org/​|Signal]] (iOSAndroid, Chromium) 
 +  * [[https://​wire.com|Wire]] (iOSAndroid, Linux, Mac OS, Windows, Web) 
 +  * [[https://​conversations.im/​|Conversations]] 
 + 
 +===== IRC ===== 
 + 
 +==== IRC over Tor ==== 
 + 
 +Note that if you don't use the Tor Browser Bundle (but just tor) replace 9150 with **9050** 
 + 
 +For the **XChat** ​ IRC Client (or [[http://​hexchat.github.io/​downloads.html|Hexchat]]):​ 
 + 
 +  * Start Tor. 
 +  * In Xchat go to Settings→Options→Network Setup and enter the following:​ 
 + 
 +<​code>​ 
 +      Hostname: 127.0.0.1 
 +      Port: 9150 
 +      Type: Socks5 
 +      Use Proxy for: both 
 +</​code>​ 
 + 
 +  * Save and make sure you don't connect with the nickname you use without tor. 
 + 
 +For the **irssi** ​ IRC Client go here: [[https://​www.cryptoparty.in/​documentation/​irssi_plus_tor|https://​www.cryptoparty.in/​documentation/​irssi_plus_tor]] 
 + 
 +For the **mIRC** ​ Client: 
 + 
 +  * Press Alt+O to open the options dialog 
 +  * Go to Connect → Proxy section 
 +  * Under Connection select Both 
 +  * Under Protocol select Socks 
 +  * Under Hostname enter "​127.0.0.1"​ 
 +  * Under Port enter 9150 & press OK. 
 + 
 +There are also tor-internal IRC servers to which you can only connect once you set up the above. [[http://​www.reddit.com/​r/​onions/​comments/​15kvb3/​anyone_have_a_list_of_currently_working_onion_irc/​|You can find most of them here]] 
 + 
 +==== IRC with I2P ==== 
 + 
 +  * Set up I2P [[:​learn:​how-tos#​i2p|as described further below]] 
 +  * Start it, as well as your IRC-Client (ie mIRC or Xchat) 
 +  * Connect to a new server: 127.0.0.1 Port 6668 
 +  * Done. There are also more IRC servers than the default one above. For learning how to join them read the bottom of [[http://​pastebin.com/​xWzw10wW|this page]] but the above is the most active one. 
 +  * //​[[http://​www.youtube.com/​watch?​v=cCN25hxjFjE|Full step by step guide for I2P over mIRC on youtube]]//​ 
 + 
 +===== Pidgin over Tor ===== 
 + 
 +  * Go to the Accounts, select your Account 
 +  * Select Edit Account 
 +  * Go to the Advanced Tab 
 +  * Under Proxy Options select proxy type SOCKS v5 
 +  * Enter 127.0.0.1 for the host and 9150 for the port 
 +  * Leave user/pass blank 
 + 
 +See also: [[https://​help.riseup.net/​en/​chat/​clients/​pidgin#​tor-with-pidgin-configuration|https://​help.riseup.net/​en/​chat/​clients/​pidgin#​tor-with-pidgin-configuration]] 
 + 
 +===== Securing pidgin on GNU/Linux ===== 
 + 
 +  * For information on how to secure pidgin on GNU/Linux [[https://​help.riseup.net/​en/​chat/​clients/​pidgin#​securing-pidgin-on-gnulinux|https://​help.riseup.net/​en/​chat/​clients/​pidgin#​securing-pidgin-on-gnulinux]] 
 +  * For information on how to properly install Apparmor: [[https://​wiki.debian.org/​AppArmor/​HowTo|https://​wiki.debian.org/​AppArmor/​HowTo]] 
 + 
 +===== Other ===== 
 + 
 +  * [[http://​retroshare.sourceforge.net/​|Retroshare]] lets you //​securely// ​ chat and share files with your friends and family, using a web-of-trust to authenticate peers and OpenSSL to encrypt all communication. It provides filesharing,​ chat, messages, forums and channels. 
 +  * [[https://​github.com/​agl/​pond|pond]] is a heavily encrypted replacement for email 
 +  * [[https://​​github.com/​​prof7bit/​TorChat/​​downloads|TorChat]] is a peer to peer instant messenger with a completely decentralized design, built on top of [[:​learn:​how-tos#​​tor_hidden_services|Tor'​ s hidden services]], giving you extremely strong // anonymity// ​ while being very easy to use without the need to install or configure anything. 
 +  * [[http://​echelon.i2p.to/​qti2pmessenger/​|I2P Messenger]] is an end-to-end encrypted serverless communication application over [[:​learn:​how-tos#​i2p|I2P]]. It supports file transfer and has a search for other users. 
 +  * [[https://​bitmessage.org/​wiki/​Main_Page|BitMessage]] is a P2P communications protocol used to send encrypted messages to another person or to many subscribers. It is decentralized and trustless, meaning that you need-not inherently trust any entities like root certificate authorities. It uses strong authentication which means that the sender of a message cannot be spoofed, and it aims to hide "​non-content"​ data, like the sender and receiver of messages, from passive eavesdroppers like those running warrantless wiretapping programs. [[https://​wastun.tem.li/​howto_bitmessage|Tutorial for setting up and using Bitmessage – an encrypted communications platform based on Bitcoin]] 
 + 
 + 
 +====== VoIP ====== 
 +The easiest way is to use WebRTC, which is built into every modern browser. Just go to one of the many rendezvous-sites like https://​meet.jit.si,​ https://​talky.io,​ or https://​spreed.me, create a room, and start chatting. 
 + 
 +Alsoall major instant messaging apps for smartphones,​ like WhatsApp or Signal, support encrypted calls. 
 + 
 +  * [[https://​jitsi.org/​|Jitsi]] is an open source multiplatform Voice over IP, videoconferencing and instant messaging application for Windows, Linux and Mac OS X. 
 +  * [[http://​pillowfortress.wordpress.com/​2013/​08/​01/​how-to-encrypt-chat-and-voip-with-jitsi-and-xmpp/​|How To Encrypt VoIP With Jitsi]] 
 +  * Jitsi may request non-secure information during encrypted chat if you paste a link into it. This can be disabled in "//​Preferences/​Options > Chat > Enable Image/Video replacement//"​ 
 +  * [[https://​play.google.com/​store/​apps/​details?​id=com.csipsimple|CSipSimple]] is an open source android app for end-to-end encrypted VoIP calls. 
 +  * Get a free SIP account for Jitsi and/or CSipSimple with The Guardian Project’s [[https://​ostel.co/​|Ostel]] service. 
 + 
 +====== Darknet ====== 
 + 
 +A darknet is an internet or private network, where information and content are shared by darknet participants anonymously. More accurately all of them share being //anonymous overlay networks//​. 
 + 
 +===== Tor Hidden Services ===== 
 + 
 +Tor can also provide anonymity to websites and other servers. Servers configured to receive inbound connections only through Tor are called hidden services. Rather than revealing a server's IP address (and thus its network location), an hidden service is accessed through its .onion address. The Tor network understands these addresses and can route data to and from hidden services, while preserving the anonymity of both parties. 
 + 
 +  * Follow the [[:​learn:​how-tos#​tor_browser_bundle|guide for setting up the Tor Browser Bundle above]] 
 +  * That's it already. [[http://​pastebin.com/​zRLGDRCM|You can find some hidden services (.onion sites) here]] that you can now open up with the TorBrowser 
 + 
 +===== I2P ===== 
 + 
 +I2P is a secureanonymous network resistant to censorship and monitoring and both distributed and dynamicwith no trusted parties. It offers a range of services by default (including an active IRC Chat) and with full support for streaming, anonymous file sharing (BitTorrent),​ webserving, mail and more. See the [[https://​geti2p.net/​en/​comparison/​tor|comparison between Tor and I2P]] 
 + 
 +==== Step 1 ==== 
 + 
 +  * **Ubuntu**:​ 
 +Open a terminal (Ctrl+Alt+T) and issue the following commands: 
 + 
 +<​code>​ 
 +      sudo apt-add-repository ppa:​i2p-maintainers/​i2p 
 +      sudo apt-get update 
 +      sudo apt-get install i2p 
 +</​code>​ 
 + 
 +And then '//'​i2prouter start//''​ to launch I2P. 
 + 
 +  * **Windows**:​ 
 +Get the latest installer from [[http://​i2p2.de/​download.html|http://​i2p2.de/​download.html]] & install. Make sure you also install [[http://​java.com/​en/​download/​index.jsp|java]] if you get asked to do so. Then double click on //Start I2P (no window)// 
 + 
 +==== Step 2 ==== 
 + 
 +  * The I2P router console should open by this. You can reach it here: [[http://​127.0.0.1:​7657/​home|http://​127.0.0.1:​7657/​home]] 
 +  * On the left panel you will see bandwidth of 96KBps and 40KBps for the In and Out speeds. Your most likely have an Internet speed far greater than this. Therefore, you should raise the speeds significantly. 
 +  * Then go here (also optionally):​ [[http://​127.0.0.1:​7657/​susidns/​subscriptions|http://​127.0.0.1:​7657/​susidns/​subscriptions]] and remove the textbox's contents, replace with [[http://​pastebin.com/​raw.php?​i=U5jJTrbp|this]] &​save. 
 +  * Now you can either always use a second browser/​profile for using I2P **or** ​ FoxyProxy wildcards:​ 
 + 
 +---- 
 + 
 +  - Get the [[https://​addons.mozilla.org/​en-US/​firefox/​addon/​foxyproxy-standard/​|FoxyProxy AddOn]] ​([[https://​chrome.google.com/​webstore/​detail/​foxy-proxy-standard/​gcknhkkoolaabfmlnjonogaaifnjlfnp|Chrome here]]) 
 +  - When installed click the FoxyProxy logo next to the URL bar. And then change “Select Mode:” to “Use proxies based on their pre-defined patterns and priorities” 
 +  - Click “Add a new proxy” and on the “General” tabmake sure “Enabled” is checked. Also give it a name like "​I2P"​ there. 
 +  - One the “Proxy Details” tabselect “Manual Proxy Configuration” and enter “localhost” in the “Host or IP Address” field and “4444″ in the port field. 
 +  - On the “URL Patterns” tabclick “Add New Pattern”make sure “Enabled” is checked and “Whitelist” and “Wildcards” are selected. Give it a Pattern Name (ie. "​I2P"​) and in the “URL Pattern” field, enter “*.i2p/​*” 
 +  - Press Ok twice & close. Firefox will now send all .i2p requests through the local proxy. You can now access the //"​eepsites"// ​ hosted within I2P. 
 + 
 +  * **Alternatively** ​ (and recommended for optimal security) you can create another Firefox profile (ie "​I2P"​) go to Extras→Options→Network→Connection Settings→check Manual Proxy Configuration and then enter the following:​ 
 +<​code>​ 
 +      HTTP-Proxy: 127.0.0.1 ​   Port: 4444 
 +</​code>​ 
 + 
 +  * Click OK. You can also run 2 firefox instances at the same time using [[http://​www.mouserunner.com/​FF_Tips_Multiple_Fx.html|this neat batch]] 
 +  * Enter //​about:​config// ​ and confirm that you're being careful. Search for the following entries and set them all to //​false//:​ 
 + 
 +<​code>​ 
 +    javascript.enabled 
 +    browser.safebrowsing.enabled 
 +    browser.safebrowsing.malware.enabled 
 +</​code>​ 
 + 
 +  * Disable all Plugins. Alternatively to setting javascript.enabled to false you can also use [[https://​addons.mozilla.org/​en-US/​firefox/​addon/​noscript/​|NoScript]] 
 + 
 +---- 
 + 
 +  * [[http://​pastebin.com/​xWzw10wW|You can find some eepsites and additional info here]] 
 + 
 +  * [[:​learn:​how-tos#​torrenting_with_i2p|How to torrent via I2P]] 
 +  * [[:​learn:​how-tos#​irc|How to connect to IRC via I2P]] 
 + 
 +===== Freenet ===== 
 + 
 +Freenet is peer-to-peer platform for censorship-resistant communication. It is more or less a decentralized distributed data storage. Freenet works by storing small encrypted snippets of content distributed on the computers of its users and connecting only through intermediate computers which pass on requests for content and sending them back without knowing the contents of the full filesimilar to how routers on the Internet route packets without knowing anything about files—except with caching, a layer of strong encryption, and without reliance on centralized structures. This allows users to publish anonymously or retrieve various kinds of information. So called "//​freesites//"​ allow you to browse such content. Other types of usage include chat, email & microblogging. 
 + 
 +  * [[http://​freesocial.draketo.de/​freenet_en.html|Tutorial for installing and configuring Freenet]] 
 + 
 +===== Retroshare ===== 
 + 
 +[[http://​retroshare.sourceforge.net/​downloads.html|RetroShare]] is free software for encryptedserverless emailInstant messaging, BBS and filesharing based on a friend-to-friend network built on GPG. Unlike most P2P networks where your computer will connect to the network and share information with a huge number of unknown peers, RetroShare will only connect to other peers that you have explicitly allowed into your network, and all communications are private. 
 + 
 +Communication services in RetroShare:​ 
 + 
 +  * Private chat with friends 
 +  * Private or public chat lobbies, that allow chatting with friends and friends of friends 
 +  * Messages to friends 
 +  * Forums 
 +  * Voice over IP 
 + 
 +All you need to do is install the software and generate a PGP/GPG key, which will be used to encrypt and decrypt your network traffic. The hard part is getting at least 5 of your friends to also install the software and [[http://​retroshare.wikidot.com/​en:​adding-friends|to share their public keys with you]]. Once that is doneyou have your very own DarkNet. 
 + 
 +FIXME //Please add info for "The degree of anonymity can still be improved by deactivating the DHT and IP/​certificate exchange services"//​ 
 + 
 +====== Meshnet ====== 
 + 
 +**Advanced**. A meshnet is a decentralized peer-to-peer networkwith user-controlled physical links (usually wireless). The most popular meshnet refers to the transitional CJDNS Internet overlay network currently known as //​Hyperboria//​. 
 + 
 +  * [[http://​hyperboria.net/#​join|How to set up Hyperboria (no Mac/Windows yet)]] 
 + 
 +====== File Sharing, Torrenting, Warez ====== 
 + 
 +For anonymous downloading the absolute minimum is making use of a [[:​learn:​how-tos#​vpn|VPN]]. Other options are described further below. 
 + 
 +===== Torrenting with I2P ===== 
 + 
 +  * Follow [[:​learn:​how-tos#​i2p|the guide for setting up I2P above]] 
 +  * Watch [[http://​www.youtube.com/​watch?​v=B3EGhm6hqLg|this great step by step guide on youtube]] 
 +  * And [[http://​www.youtube.com/​watch?​v=SvQOU3BA0ng|this one for learning how to upload a torrent]] 
 + 
 +===== Tribler ===== 
 + 
 +Tribler is an open source peer-to-peer decentralized torrent client with various features for watching, streaming & sharing videos online. 
 + 
 +//Soon// (!) **[[http://​tribler.org/​anonymity.html|Tribler]]** will also feature anonymous downloading by including support for a subset of the Tor onion routing protocol (independent from the existing Tor network). 
 + 
 +===== Frost with Freenet ===== 
 + 
 +[[http://​sourceforge.net/​projects/​jtcfrost/​|Frost]] is a Freenet client that provides newsgroup-like messaging, private encrypted messages, file upload/​download functionality and a file sharing system. 
 + 
 +  * Follow [[:​learn:​how-tos#​freenet|the guide for setting up Freenet above]] 
 +  * Download Frost from the link above or via its freesite: //​USK@oyjm9tEWQ1fYbYDsBfJ017-ip9uTPzPLB52QHMduBIc,​HE~wfG205QnSscK-U9FX7hAtGVkJg1~GRjkU1qkceTE,​AQABAAE/​frost/​-1//​ / 
 +  * Create a directory where you want Frost to reside, and uncompress the zip file in there. 
 +  * Start frost.jar (or .bat) (if you are on Windows) or frost.sh (if you are on *nix) and enter a nick. 
 + 
 +===== Retroshare ===== 
 + 
 +[[:​learn:​how-tos#​retroshare|RetroShare]] allows you to share files securely with your friends. It also allows downloads from friends of friends using anonymous tunnels, if the uploader allows it. More information on this can be found here: \\ 
 +[[http://​retroshare.sourceforge.net/​wiki/​index.php/​Documentation:​Filesharing|http://​retroshare.sourceforge.net/​wiki/​index.php/​Documentation:​Filesharing]] 
 + 
 +===== Other ===== 
 + 
 +===== Anonymous Upload & Download of Youtube-Videos ===== 
 + 
 +Videos from Youtube have unique metadata embedded into them via our friends at Google (on a per download basis). If that same file is seen elsewhere Google can check their logs to see when that file was downloaded and everything your computer sent, such as your IP addressuser-agent and other fingerprinting info. 
 + 
 +When using **[[https://​rg3.github.io/​youtube-dl/​|youtube-dl]]**:​ Make sure to use the false user-agent that [[:​learn:​how-tos#​tor_browser_bundle|Tor Browser]] uses. Youtube-dl uses your real computer user-agent otherwisewhich is not good for privacy. 
 + 
 +<​code>​ 
 +        --user-agent UA specify a custom user agent 
 +        --user-agent "​Mozilla/​5.0 (Windows NT 6.1; rv:31.0) Gecko/​20100101 Firefox/​31.0"​ 
 +</​code>​ 
 + 
 +You can also put these settings into a file "//​~/​.config/​youtube-dl.conf//"​ to use as default. Just remember to update it when the Tor Bowser Bundle updates their user agent. 
 + 
 +Use [[:​learn:​how-tos#​tor_browser_bundle|Tor]] or a [[:​learn:​how-tos#​vpn|VPN]] if you need your IP concealed. 
 + 
 +If you plan to reupload or share the video and wish for google to not know which of the downloaders is uploading the file do the following from a Linux terminal: 
 + 
 +<​code>​ 
 +     $ ffmpeg -i originalvideo.mp4 -acodec copy -vcodec copy newvideo.mp4 
 +</​code>​ 
 + 
 +That will strip the video to only the video and audio (removing the metadata). You can verify this by downloading the same video twice and checking the sha256sum's against each other. After you strip the video and audio you can see the two different sha256sum'​s have become the same. 
 + 
 +====== DNS ====== 
 + 
 +The Domain Name System (DNS) is a hierarchical distributed naming system for computersservices, or any resource connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities. Most prominently,​ it translates easily memorized domain names to the numerical IP addresses needed for the purpose of locating computer services and devices worldwide. An oft-used analogy to explain the Domain Name System is that it serves as the phone book for the Internet by translating human-friendly computer hostnames into IP addresses. For example, the domain name [[http://​www.example.com|www.example.com]] translates to the addresses 192.0.43.10 (IPv4) and 2001:​500:​88:​200::​10 (IPv6)….which you probably can't remember as good as a name such as "​example.com"​. [[https://​www.youtube.com/​watch?​v=72snZctFFtA|Here is a video explaining DNS]] 
 + 
 +[[http://​www.opennicproject.org/​|OpenNIC]] is an alternative DNS root which lists itself as an alternative to ICANN and its registries. By using it your connection to the Internet can't get censored by your DNS server. It also allows you to use DNS servers which don't run logs improving your anonymity. 
 + 
 +  * Go [[http://​www.opennicproject.org/​configure-your-dns/​|here]] and choose the tutorial for you OS 
 +  * Follow the step by step guide. And then repeat the process for IPv6. 
 +  * [[http://​wiki.opennicproject.org/​Tier2|Make sure you use DNS servers that don't run logs (or anonymize them)]] 
 + 
 +====== Currency ====== 
 + 
 +Bitcoin is a decentralisedanonymous digital currency. 
 + 
 +  * [[https://​www.youtube.com/​watch?​v=Um63OQz3bjo|Short animated introduction to Bitcoin]] 
 +  * [[https://​en.bitcoin.it/​wiki/​Using_Bitcoin|Tutorial for Using Bitcoin]] 
 +  * To anonymize your bitcoins further you can use the [[http://​fogcore5n3ov3tui.onion|BitcoinFog]] Or Helix laundering service over [[#​tor_hidden_services|Tor]] 
 + 
 +====== File Deletion ====== 
 + 
 +If you want to delete files on your PC the normal way, they can be easily restored with tools freely available on the Internet (such as Recuva). Because of this you might want to make sure to truly delete files in certain circumstances (ie if you want to sell your PC). 
 + 
 +===== Warning ===== 
 + 
 +Right now, there is no secure way to delete files from flash memory. This includes usb sticks, memory cards and solid state hard disks (SSDs). The only responsible way to prevent theft of data on these media is //​[[:​learn:​how-tos#​disc_encryption|full disk encryption]]//​. 
 + 
 +==== Windows ==== 
 + 
 +  * [[http://​www.dban.org/​download|DBAN]] is a self-contained boot disk that automatically deletes the contents of any hard disk that it can detect. \\  This method can help prevent identity theft before recycling a computer. DBAN prevents all known techniques of hard disk forensic analysis. Warning to make this perfectly clear: it will erase //all data on all hard drives// ​ it detects (including external ones(**!**))"​. 
 + 
 +  * With [[http://​eraser.heidi.ie/​download.php|Eraser]] you can securely delete individual files on Windows. 
 + 
 +  * With [[https://​www.piriform.com/​ccleaner|Ccleaner]] you can do the same for partitionsdrives as well as seemingly "free space" [which in reality consists of restorable data] on Windows & Mac. For this go to //​Tools→Drive Wiper//. 
 + 
 +==== Linux ==== 
 + 
 +If you want to erase a hard disk (now, because //​everything// ​ is overwritten,​ this works with flash memory, too), you can simply do so by finding out the file representation of the disk, e.g. /dev/sdx and then executing 
 + 
 +<​code>​ 
 +dd if=/​dev/​urandom of=/​dev/​sdx 
 +</​code>​ 
 + 
 +as root/​superuser. This command is irrevocable,​ so please double-check before executing it! \\To find a list of current ​'block devices'​ you can use the '​lsblk'​ programthis will provide a list of the current available block devices by their name. Please note that if you want to properly purge the data you want to overwrite the root device, ie ///​dev/​sda// ​ rather than ///​dev/​sda1//​. as ///​dev/​sda1// ​ is a partition within the block device. 
 + 
 +[[http://​bleachbit.sourceforge.net/​|BleachBit]] provides a means of clearing common caches and other meta information left behind by applications and also includes a 'Free disk space' option, which will attempt to obscure the contents of free disk space by overwriting available disk space with random data (it creates ​file, and lets it grow till it consumes all free space) and a '​Memory'​ option which will do the same for RAM and Swap. 
 + 
 +[[http://​www.thc.org/​releases.php|THC Secure Delete]] provides a set of tools for surely erasing filesswap and memory. srm does secure deletion of files. \\ 
 +sfill does a secure overwriting of the unused diskspace on the harddisk. \\ 
 +sswap does a secure overwriting and cleaning of the swap filesystem. (note that sswap was only tested on linux so far. you must unmount your swap first!) \\ 
 +smem does a secure overwriting of unused memory (RAM) To install the tools on ubuntu issue the command: 
 + 
 +<​code>​ 
 +sudo apt-get install secure-delete 
 +</​code>​ 
 + 
 +==== Mac ==== 
 + 
 +Beginning with Mac OS 10.3, Apple enhanced its security by introducing the [[http://​safecomputing.umich.edu/​protect-personal/​encrypt-mac.php#​delete|Secure Empty Trash]] feature, which follows the U.S. DoD pattern of overwriting data seven times. 
 + 
 +[[http://​www.edenwaith.com/​downloads/​permanent eraser.php|Permanent Eraser]] provides an even stronger level of security by implementing the Gutmann Method. This utility overwrites your data thirty-five times, scrambles the original file name, and truncates the file size to nothing before Permanent Eraser finally unlinks it from the system. Once your data has been erased, it can no longer be read through traditional means. 
 + 
 +====== Photos & Videos ====== 
 + 
 +===== Photo EXIF Data Removal ===== 
 + 
 +EXIF (Exchangeable Image File) data is a record of what camera settings were used to take a photograph. This data is recorded into the actual image file. Therefore each photograph has its own unique data. EXIF data stores information like camera model, exposure, and sometimes even GPS-data. While there are many image-hosting services such as imgur.com that strip away the exif data most sites keep it, leaking private information ie for grab to the NSA's XKeyscore program which [[http://​www.theguardian.com/​world/​interactive/​2013/​jul/​31/​nsa-xkeyscore-program-full-presentation#​text/​p32|is planned to]] mine for the exif data of all pictures getting uploaded. 
 + 
 +  * **Windows**:​ [[http://​www.exiferaser.com/​|Free EXIF Eraser]] allows you to easily delete entire EXIF/​IPTC/​XMP information from image files. 
 +  * **Ubuntu**: [[http://​blog.techfun.org/​2009/​11/​how-to-remove-exif-data-from-jpeg-files-in-ubuntu/​|How to Remove EXIF Data from JPEG Files in Ubuntu]] 
 +===== Other ===== 
 + 
 +[[https://​play.google.com/​store/​apps/​details?​id=org.witness.sscphase1|ObscuraCam]] is a secure camera app for android phones that can obscure (ie for face blurring), encrypt or destroy pixels within an image. 
 + 
 +====== Virtual Machines & Live Disc/USB ====== 
 + 
 +The Amnesic Incognito Live System or **Tails** ​ is a Debian-based Linux distribution aimed at preserving privacy and anonymity. All its outgoing connections are forced to go through Tor, and direct (non-anonymous) connections are blocked. The OS is designed to be booted as a live CD or USB, and leaves no trace on the machine unless explicitly told to do so.  
 + 
 +  * Download [[https://​tails.boum.org/​download/​index.en.html|Tails]] 
 +  * Verify the checksums as described here: [[:​learn:​how-tos#​integrity_checks|Integrity Checks]] 
 +  * [[:​learn:​tails|Configuration notes from a CryptoParty]] 
 + 
 +If you don't want to create these yourselfyou can [[https://​www.osdisc.com/​index.html|purchase]] them. 
 + 
 +Alternatives to Tails such as Liberté Linux [[https://​prism-break.org/​en/​subcategories/​windows-operating-systems-live/​|can be found here]]. The following tutorials also pretty much apply to them as well. 
 + 
 +===== Virtual Machine ===== 
 + 
 +A virtual machine is a software based, fictive computer. Virtual machines may be based on specifications of a hypothetical computer or emulate the computer architecture and functions of a real world computer. 
 + 
 +  * Download & install [[https://​www.virtualbox.org/​wiki/​Downloads|Virtual Box]] 
 +  * Start Virtual Box click "​New"​ in the upper left corner 
 +  * FIXME 
 +  * 
 + 
 +[[https://​www.youtube.com/​watch?​v=qPWIA6D5Odg&​hd=1|Here is a full tutorial for Whonix]] 
 + 
 +===== Live Disc/USB ===== 
 + 
 +A live disc is a complete bootable computer operating system which runs in the computer's memoryrather than loading from the hard disk drive. It allows users to experience and evaluate an operating system without installing it or making any changes to the existing operating system on the computer. Live USBs are closely related to live discs, but sometimes have the ability to persistently save settings and permanently install software packages back onto the USB device. 
 + 
 +  * Burn the ISO onto a DVD You can use [[http://​www.imgburn.com/​|ImgBurn]] for that. 
 +  * If you want to have it on a USB stick you first need another stick with tails preinstalled or a DVD, then follow [[https://​tails.boum.org/​doc/​first_steps/​usb_installation/​index.en.html|this guide]]. 
 +  * Make sure the DVD is inserted (or the USB plugged in) then restart your PC 
 +  * Tails should boot automatically. Make sure you "press any key" when asked to do so. If it doesn't work you have to [[http://​www.wikihow.com/​Boot-a-Computer-from-a-CD|change the boot order in BIOS]] 
 + 
 +If you don't want to create these yourselfyou can [[https://​www.osdisc.com/​index.html|purchase]] them. 
 + 
 +====== Operating system ====== 
 + 
 +[[https://​prism-break.org/​en/​subcategories/​windows-operating-systems/​|Recommended OS]] 
 + 
 +FIXME //Please add tutorial/s for a new OS or 2nd OS// 
 + 
 +If you (keep) using Windows [[http://​xp-antispy.org/​en/​about/​|xp-AntiSpy]] lets you disable some built-in update and authentication ‘features’ in Windows 7 that are calling home. [[http://​www.ghacks.net/​2015/​08/​14/​comparison-of-windows-10-privacy-tools/​|For Windows 10]]. 
 + 
 +====== VPN ====== 
 + 
 +A Virtual Private Network (VPN)is a private network of computers within a public network (the internet). When you connect to a VPN, the computer acts as if it’s ​on the same local network as the VPN. All your network traffic is sent over a secure connection to the VPN. Unlike a Proxya VPN service provider encrypts all of your trafficreplacing your ISP and routing ALL traffic through the VPN server, including all programs and applications while being faster as each client gets dedicated resources (a single proxy often has thousands of users). 
 + 
 +Make sure that.. 
 + 
 +  * …you pay for the VPN (don't use free ones, [[https://​www.turnonvpn.org/​blog/​never-use-free-vpns/​|here]]'​s why) 
 +  * …you do the above anonymously (ie using [[:​learn:​how-tos#​currency|Bitcoins]]) 
 +  * …the VPN [[https://​www.expressvpn.com/​what-is-vpn/​policy-towards-logs|doesn'​t keep logs]](!) 
 +  * …the VPN doesn'​t use [[https://​en.wikipedia.org/​wiki/​Point-to-Point_Tunneling_Protocol|PPTP]] 
 +  * …you can also install your own VPN [[https://​anonymster.com/​setup-openvpn-server-digitalocean|Setup OpenVPN Server]] 
 + 
 +**Windows**:​ 
 + 
 +  * Press the Windows key, type VPN, and click the Set up a virtual private network (VPN) connection option. 
 +  * Use the wizard to enter the address and login credentials of the VPN service you want to use. 
 +  * You can then connect to and disconnect from VPNs using the network icon in the system tray - the same one where you manage the Wi-Fi networks you’re connected to. 
 + 
 +FIXME //Please add how to set up a VPN + [[https://​thebestvpn.com/​118-vpns-logging-policy/​|recommendations ]]+ improve description above// 
 + 
 + 
 +====== Android ====== 
 +=====General===== 
 +   * Make sure your device firmware and apps remain updated. 
 +   * [[https://​play.google.com/​store/​apps/​details?​id=com.oasisfeng.greenify&​hl=en|Greenify]] keeps some apps from running in the background 
 +   * Check all the settings and disable things like location tracking etc. 
 + 
 +=====Antivirus===== 
 +You should definitely have an anti-virus software running ​on your device. 
 + 
 +=====Root===== 
 +Many apps require root-access to your phone. Gaining such isn't //that// hard to do: just google your device name and firmware (both to be found in the settings under "info to device"​​) + "root tutorial"​​ as it's different for each device and firmware-version. However there are also [[http://​www.makeuseof.com/​tag/​security-reasons-never-root-android/​|multiple reasons]] of security to //not// root your device. 
 + 
 +===== Encryption ===== 
 + 
 +    * [[http://​www.howtogeek.com/​141953/​how-to-encrypt-your-android-phone-and-why-you-might-want-to/​|How to encrypt your android phone]] (to easily and quickly unlock it set fingerprints) 
 +   * Make sure to also encrypt your SD card 
 + 
 +===== Permissions ===== 
 + 
 +FIXME Check & review the following Apps: \\ [[https://​play.google.com/​store/​apps/​details?​id=com.lara.pakage|Who is Tracking Free]] \\ 
 +[[https://​play.google.com/​store/​apps/​details?​id=com.stericson.permissionfix|Fix Permissions]] \\ 
 +[[https://​play.google.com/​store/​apps/​details?​id=com.appz.fake|Fake Permissions (User Apps)]] \\ 
 +[[https://​play.google.com/​store/​apps/​details?​id=de.struse.apewatch|App Permission Watcher]] \\ 
 +[[https://​play.google.com/​store/​apps/​details?​id=com.fsecure.app.permissions.privacy|F-Secure App Permissions]] \\ 
 +[[http://​beste-apps.chip.de/​android/​app/​srt-appguard-android-app,cxo.56552140/​|SRT AppGuard]] 
 + 
 +===== GPG ===== 
 + 
 +  * [[https://​play.google.com/​store/​apps/​details?​id=org.sufficientlysecure.keychain|Open Keychain]] gives you access to PGP keys allowing end-to-end secure communication and encrypted data storage (also mentionied [[:​learn:​how-tos#​crypto|earlier]]). ​ Additionallythis software supports the YubiKey hardware token for storing your private keys.  
 +  * You can use [[https://​play.google.com/​store/​apps/​details?​id=com.fsck.k9|K-9 Mail]] together with Open Keychain for encrypting/​decryptingsigning/​verifying emails. 
 + 
 +===== Firewall ===== 
 +A firewall is an absolute //must//. 
 +  * [[https://​play.google.com/​store/​apps/​details?​id=app.greyshirts.firewall&​hl=en|NoRoot Firewall]] 
 +  * [[https://​adguard.com/​en/​adguard-android/​overview.html|Adguard for Android]]Firewall AND Adblocker for non-rooted phones (not free) 
 +  * [[https://​play.google.com/​store/​apps/​details?​id=com.googlecode.droidwall.free|Droidwall]] allows you allows you to block applications from accessing the Internet. It requires root access. 
 + 
 +===== Superuser ===== 
 + 
 +  * [[https://​play.google.com/​store/​apps/​details?​id=com.koushikdutta.superuser|Superuser]] for Android allows you to grant and manage Superuser rights for your phone. It also requires root. 
 + 
 +===== Web browsing ===== 
 + 
 +  * [[https://​play.google.com/​store/​apps/​details?​id=org.mozilla.firefox|Firefox]] is an open source web browser that respects your privacy. It also allows you to use AddOnssuch as the following: 
 +   * [[https://​addons.mozilla.org/​en-US/​android/​addon/​adblock-plus/​|Adblock Plus AddOn]] 
 +   * [[https://​addons.mozilla.org/​en-US/​android/​addon/​https-everywhere/​|HTTPS Everywhere AddOn]] 
 +  * [[https://​adguard.com/​en/​adguard-android/​overview.html|Adguard for Android]]Firewall AND Adblocker for non-rooted phones (not free) 
 +  * Alternatives:​ [[https://​​f-droid.org/​​repository/​​browse/?​​fdid=org.adaway|AdAway]] (requires root)[[https://​​adblockplus.org/​​en/​​android|Adblock Plus]] (does not require root) and more 
 +  * [[https://​play.google.com/​store/​apps/​details?​id=org.torproject.android|Orbot]] is a free proxy application that empowers other applications to use the Internet more securely. Orbot uses Tor to encrypt your Internet traffic and then hides it by bouncing through a series of computers around the world. 
 +  * [[https://​play.google.com/​store/​apps/​details?​id=mobi.infolife.eraser|History Eraser]] allows you to delete your search history and various other things (just like [[:​learn:​how-tos#​general_tips|Ccleaner/​BleachBit]] for your mobile). It also guides you to some settings that ought to be changed or switched off such as google data syncing. There also is [[https://​play.google.com/​store/​apps/​details?​id=com.piriform.ccleaner&​hl=en|CCleaner for Android]]. 
 + 
 +===== Notes ===== 
 + 
 +  * [[https://​play.google.com/​store/​apps/​details?​id=info.guardianproject.notepadbot|NoteCipher]] allows you to create notes secured using industry standard 256-bit AES encryption. Tap "Lock Notes" after finishing. 
 + 
 +====== iOS ====== 
 +iOS is a proprietary operating system whose source code is not available for auditing by third parties. You should entrust neither your communications nor your data to a closed source device (better use android or any of [[https://​prism-break.org/​en/​subcategories/​android-operating-systems/​|these alternatives]]). 
 + 
 +===== Calls ===== 
 + 
 +  * [[https://​itunes.apple.com/​app/​id874139669|Signal]] provides ZRTP / end-to-end encryption for your callssecuring your conversations so that nobody can listen in. 
 +  * The app "​Wire"​ offers encrypted calls with excellent quality and the option to have video chats.  
 +  * More information:​ [[https://​whispersystems.org/​blog/​signal|https://​whispersystems.org/​blog/​signal]] 
 + 
 +===== Web Browsing ===== 
 + 
 +  * [[https://​itunes.apple.com/​us/​app/​ghostery/​id472789016|Ghostery]] stops third-party sites from tracking you. 
 +  * [[https://​itunes.apple.com/​au/​app/​onion-browser/​id519296448?​mt=8|Onion browser]] is a Tor-capable web browser that lets you access the internet privately and anonymously. 
 + 
 +===== Chat ===== 
 + 
 +  * See [[:​learn:​how-tos#​otr|ChatSecure here]] 
 + 
 +====== Disc Encryption ====== 
 + 
 +===== VeraCrypt ===== 
 + 
 +[[https://​veracrypt.codeplex.com/​|VeraCrypt]] is an on-the-fly disk encryption system and the successor of the discontinued [[https://​en.wikipedia.org/​wiki/​TrueCrypt|TrueCrypt]]. The software is freely availableruns on **multiple operating systems**, and is very easy to learn how to use. VeraCrypt also plays nicely with dual-boot systems (such as Windows and Linux). VeraCrypt options include either full disk encryption or the creation of cryptographic container files, which mount as additional drive volumes. 
 + 
 +VeraCrypt can also be used to encrypt USB flash memory sticks or digital camera or mobile phone memory cards. The caveat is that it is almost impossible to guarantee to securely wipe or overwrite the data from these devices due to their [[https://​en.wikipedia.org/​wiki/​Wear_leveling|wear leveling]] algorithms. Therefore you should use a fresh USB device to re-encrypt the data with a new secret key. VeraCrypt also includes a few options which theoretically provide [[https://​en.wikipedia.org/​wiki/​Plausible_deniability|plausible deniability]] to the user. 
 + 
 +==== Learn and Use ==== 
 + 
 +  * [[https://​docs.google.com/​presentation/​pub?​id=1iASaNi7T4v8jg8cHd984V_i_xbDx76fTUv0YVSuFJg4&​start=false&​loop=false&​delayms=3000|Slides:​ "Disk Encryption (TrueCrypt)"​]] (old) from CryptoParty London 
 +  * [[https://​media.torproject.org/​video/​2012-10-21-cryptoparty/​TruecryptByKevin.mov|Video:​ "​Truecrypt"​]] (old) from CryptoParty Boston (Kevin) via @torproject 
 +  * [[http://​www.randyjensenonline.com/​blog/​using-truecrypt-to-encrypt-your-entire-hard-drive|How To Encrypt Your Entire Hard Drive with Truecrypt (Windows)]] (old) 
 +  * [[https://​www.youtube.com/​watch?​v=i_WkMELC790|VeraCrypt Full Disk Encryption Guide for Windows]] 
 + 
 +===== FileVault ===== 
 + 
 +Since version 10.6 of //Mac OS X//Apple has offered users the ability to encrypt the home directory of their system. And from 10.7 onwardsFull Disk Encryption has been an option (technically referred to as FileVault 2). Enabling FileVault requires the user to have admin privileges on the computer, and will prompt the user to restart. At the next boot, as soon as the user logs in, FileVault will start doing online encryption of the main system drive. Other drives connected to the computer can also be encrypted by selecting them in Finder and choosing “Encrypt” from the File menu. 
 + 
 +When enabling FileVault, in addition to admin users being able to unlock the drive at login, a Recovery Key is also generated, with the option of escrowing this key with Apple. If you choose to do that, you'll have to provide various additional security questions/​answers along with your Apple ID. Given the ease of use of FileVaultit should be almost the first thing you should enable on setting up a new Mac. Unfortunately,​ it doesn't currently work on RAID drives. 
 + 
 +[[http://​support.apple.com/​kb/​HT4790|FileVault 2]] requires OS X Lion or Mountain Lion and Recovery HD installed on your startup drivewhich the OS X Lion installer will attempt to create at installation. 
 + 
 +==== Learn and Use ==== 
 + 
 +  * [[https://​www.youtube.com/​watch?​v=cb7g9FlJ7XU|FireVault Tutorial on youtube]] 
 +  * Additional deployment reading can be found at Apple's [[http://​training.apple.com/​pdf/​WP_FileVault2.pdf|Best Practices]]. 
 + 
 +===== LUKS ===== 
 + 
 +LUKS is the //​Linux// ​ system for encrypted disks. It can be selected as an install option on most distributions. (Available in Ubuntu as of version 12.10). 
 + 
 +==== Learn and Use ==== 
 + 
 +A detailed step-by-step how to set up an encrypted LUKS partition with //Gnome Disks Utility//:​ 
 + 
 +[[https://​github.com/​mdik/​handbook/​blob/​master/​src/​chapter_10_disk_encryption/​04_LUKS.md|https://​github.com/​mdik/​handbook/​blob/​master/​src/​chapter_10_disk_encryption/​04_LUKS.md]] 
 + 
 +===== Ubuntu ===== 
 + 
 +Ubuntu allows you to encrypt your whole drive as an option when you freshly set it up. 
 + 
 +==== Learn and Use ==== 
 + 
 +  * [[https://​www.eff.org/​deeplinks/​2012/​11/​privacy-ubuntu-1210-full-disk-encryption|How to install Ubuntu >12.10 with enabled full disk encryption]] - just check the "​Encrypt the new Ubuntu installation for security"​ checkbox at "​Installation Type"​ 
 +  * [[http://​besva.de/​ubuntu_12.04.1_tutorial.pdf|How to install Ubuntu 12.04.1 LTS (and similiar systems) with enabled full disk encryption]] 
 + 
 +====== Integrity Checks ====== 
 + 
 +In order to check that you're actually using the right program and not a fake or modified/​backdoor'​ed one it's recommended to do integrity checks (for things such as the Tor Browser Bundle at least). A '​hash'​ is a unique number generated using a published algorithm on a particular file. For example, if I have file1.txt, which has no text in it, and I run it through a [[https://​en.wikipedia.org/​wiki/​Cryptographic_hash_function|hashing algorithm]],​ I will get mathematical_value_1. If I then add text to the file, it has now changed and if I hash it again I will get a different result, mathematical_value_2. 
 + 
 +**Windows**:​ 
 + 
 +  * Download [[http://​www.nirsoft.net/​utils/​hash_my_files.html|HashMyFiles]] (scroll down a bit) 
 +  * Extract and open it. 
 +  * Now drag and drop the file you want to check into it. We're checking GPG4win as an example here. So download the .exe from [[http://​www.gpg4win.org/​download.html|here]] and then drag&​drop it into HashMyFiles. 
 +  * Now go to [[http://​www.gpg4win.org/​package-integrity.html|http://​www.gpg4win.org/​package-integrity.html]] and compare the SHA1 checksum & the File length. Usually you can find such checksums right on the download pages of files or linked somewhere. 
 + 
 +  * Now to also check the PGP signature open up a command prompt by going to start→entering "​cmd"​→enter→"​cd desktop"​ and make sure you got the file you want to check on your desktop. 
 +  * Download the .sig file on the [[http://​www.gpg4win.org/​download.html|page]] to your desktop (works the same with .asc files) 
 +  * Import their public key by entering: 
 + 
 +<​code>​ 
 +       gpg --recv-keys EC70B1B8 
 +       (You can find the last few numbers on the website) 
 +</​code>​ 
 + 
 +  * //​Or// ​ for .key files (first download to desktop): 
 +<​code>​ 
 +       gpg --import tails-signing.key 
 +       (the last bit is the filename of the .key file of course) 
 +</​code>​ 
 + 
 +  * Then enter this and check the result: 
 + 
 +<​code>​ 
 +      gpg2 --verify gpg4win-2.1.1.exe.sig gpg4win-2.1.1.exe 
 +      (first the .sig/.asc key then the corresponding file) 
 +</​code>​ 
 + 
 +**Linux**:​ 
 + 
 +  * sha1sum and md5sum are included in most Unix/Linux based operating systems (including MacOSX) → Go to '​Terminal'​ in Applications→Utilities,​ navigate to the file you wish to use and type '​md5sum ' where '​filename'​ is the filename, to get the md5sum. 
 +  * Compare with expected values from the site you downloaded from. 
 + 
 +FIXME //Please add variations for Linux&​Mac and add tutorials for [[http://​www.gpg4win.org/​doc/​en/​gpg4win-compendium_24.html|http://​www.gpg4win.org/​doc/​en/​gpg4win-compendium_24.html]]//​ 
 + 
 +====== About ====== 
 + 
 +Also available as an eepsite on [[:​learn:​how-tos#​i2p|I2P]]:​ \\ 
 +[[http://​crzh6busgh4v2kon66ant2fgscq6scj4apceqii2rstglaztfk2q.b32.i2p/​en/​wiki/​Tutorials|http://​crzh6busgh4v2kon66ant2fgscq6scj4apceqii2rstglaztfk2q.b32.i2p/​en/​wiki/​Tutorials]] \\ 
 +And as a hidden service on [[:​learn:​how-tos#​tor_hidden_services|Tor]]:​ \\ 
 +[[http://​5nklpqfgczvtjrlg.onion/​wiki/​index.php/​Tutorials|http://​5nklpqfgczvtjrlg.onion/​wiki/​index.php/​Tutorials]] \\ 
 +FIXME  //These 2 sites need to be updated to the present state of this tutorial-series.//​ 
 + 
 +---- 
 + 
 +If these tutorials helped you please pass it on - **share this page** ​ (or its contents)! 
 +