Create crypto with GPG for Mutt

Hi,

In this article, i mention about GPG crytography in order to encrypt mail password for using in mutt. GPG is a general crytography tool.


First of all, i run GPG with username, email and any comment.


gpg --gen-key 


This command generates a key with some identical informations. Then, a file which contains mail passwords is created:


nano ~/.passwds


After the password file is created;


set my_gmail_pwd = <password>


The mail password variable(s) is defined. my_ is a necessary prefix. Now a file whose extension is .gpg is created.


gpg -e -r '<username>' ~/.passwds

shred -xu ~/.passwds

<username> is username which is used in order to create gpg key generation. After these commands create .gpg file, the file must be added into ~/.muttrc file as source.


source "gpg2 -dq ~/.passwds.gpg |"


After that, in .muttrc again, 


set imap_pass = $my_gmail_pwd


is set imap (smtp, pop3) password. In conclusion, i don't need write any mail password in muttrc obviously, so i don't take a risk with using mutt :)

Popular posts from this blog

Polya’nın Problem Çözme Teknikleri

Mikroislemci Temelleri