How to safely store passwords in Irssi?

4

5

I use several IRC networks and it's unsafe to store passwords in plain text. On the other hand, typing each password after connection is uncomfortable.

How can I store passwords in encrypted file and only type database-password on Irssi startup? Do you know any scripts which provide something like that?

Adrian Sadłocha

Posted 2012-01-27T12:39:50.380

Reputation: 43

1

Alternatively, WeeChat allows storing private data (like passwords) in an encrypted file.

– Adrian Sadłocha – 2015-08-09T15:08:27.763

Answers

6

Set up eCryptFS, encfs, or a similar encrypting filesystem. Mount it on ~/Private or similar. Move your ~/.irssi to the private directory and symlink it back to the old place.

ecryptfs-setup-private
ecryptfs-mount-private
mkdir ~/Private/config
mv ~/.irssi ~/Private/config/irssi
ln -s "Private/config/irssi" ~/.irssi

eCryptFS is recommended; it's in-kernel and gives fairly good performance. But there are other options as well, such as EncFS.

user1686

Posted 2012-01-27T12:39:50.380

Reputation: 283 655

Robust solution and not only for Irssi. Thank you! – Adrian Sadłocha – 2012-01-27T19:57:21.973