Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: falsovsky/FiSH-irssi
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.6
Choose a base ref
...
head repository: falsovsky/FiSH-irssi
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 15 commits
  • 10 files changed
  • 1 contributor

Commits on May 1, 2019

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7b79ddb View commit details
  2. Update travis file

    falsovsky committed May 1, 2019
    Copy the full SHA
    ed3d61c View commit details

Commits on May 5, 2019

  1. Update documentation

    falsovsky committed May 5, 2019
    Copy the full SHA
    748fadd View commit details
  2. Add license

    falsovsky committed May 5, 2019
    Copy the full SHA
    b208db5 View commit details

Commits on May 26, 2019

  1. Save the current keyx mode

    falsovsky committed May 26, 2019
    Copy the full SHA
    d6589c5 View commit details
  2. CBC mode by default

    falsovsky committed May 26, 2019
    Copy the full SHA
    b8b9a33 View commit details
  3. Merge pull request #68 from falsovsky/fix_keyx_ecb

    Remember keyx mode
    falsovsky authored May 26, 2019
    Copy the full SHA
    0cdd7a5 View commit details

Commits on May 28, 2019

  1. Copy the full SHA
    1171606 View commit details

Commits on Sep 23, 2019

  1. Create FUNDING.yml

    falsovsky authored Sep 23, 2019
    Copy the full SHA
    61606ca View commit details

Commits on Apr 2, 2020

  1. Copy the full SHA
    330e19a View commit details

Commits on Jul 25, 2020

  1. Mark /notice+ and /me+ with a prefix/suffix as the other commands.

    Created a function called mark_crypted().
    falsovsky committed Jul 25, 2020
    Copy the full SHA
    2232335 View commit details

Commits on Jul 29, 2020

  1. Merge pull request #73 from falsovsky/missing_prefix

    Mark /notice+ and /me+ with a prefix/suffix as the other commands.
    falsovsky authored Jul 29, 2020
    Copy the full SHA
    5295563 View commit details

Commits on Apr 17, 2021

  1. Copy the full SHA
    fcc484f View commit details

Commits on Aug 4, 2023

  1. Copy the full SHA
    7178ce1 View commit details
  2. Copy the full SHA
    75f754f View commit details
Showing with 245 additions and 126 deletions.
  1. +2 −0 .github/FUNDING.yml
  2. +2 −21 .travis.yml
  3. +1 −1 CMakeLists.txt
  4. +22 −0 LICENSE
  5. +137 −79 README
  6. +16 −7 README.md
  7. +3 −3 src/DH1080.c
  8. +60 −14 src/FiSH.c
  9. +1 −0 src/FiSH.h
  10. +1 −1 src/blowfish_cbc.c
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#github: [falsovsky]
custom: ['https://www.paypal.me/falsovsky']
23 changes: 2 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,8 @@
env:
global:
# The next declration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "oSOhAGR5V+6634um23AD2INFXxylMgx2kpqHy4ZTplxtprL75nHZ1FE/3j5zlrgCkReK5zPTgm73oDY+pVkGtQaQK01vWDfuxniCRdqoX1mYS6Ypdxc/niSLkE4coF9J1Pv0s94bKyJazyaN7C3FcKGT6uDpSdGFkDVj1/O1o2DmTWXM9VloULVNdUewwZBcONpiOaP2weFNBR/dN+i3QWmYoC9A4uzvSI1kL2beZsXspzdHGLdRnjjzAmyhQn74vTZA9MNKZuh22jX9qoFNY6ZGdzVwQ7g5y7dLHWtq4qtRvn/Xit0ez6O5RaWHTPvaJnlcZbM0ailytRGdFBKn5Jf/t4gS7vrI9YftdeIoW6ieUrWiyBg0y1vo2L+MmsCVjx2HcKzG4uYI2Zw9d+3z0vvdXepctlXjnJr3VcO5Lq0ymIHYkWzTdYecEfnHDvqcn2P8YFL/TFssypkBqcTZrAgBr9ssZ85yfx7OhW47441K6CVTkrqi8/1IfTGMWq2fUAN0jS9Ghwe+mAr1fQGAmJChv//jFMwkdZAqrDONm1BV0NPh7X5nk99ny6MVerUtYPJcX2MwljBPP1iRB2q4d2E6g38StF21dc0WED1JnVGHSEnLFenEswlWTq+m0jBswWKt8WbDRyY82ps2+9VcnBrJEcPsWb6E9YGzfH6z1w4="

before_install:
- echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-

addons:
coverity_scan:
project:
name: "falsovsky/FiSH-irssi"
description: "irssi FiSH plugin"
notification_email: falsovsky@gmail.com
build_command_prepend: "cmake ."
build_command: "make"
branch_pattern: coverity_scan

branches:
only:
- master
- refactoring
- cbc
- testing
- coverity_scan
language:
- c
compiler:
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)

PROJECT(FiSH-irssi C)

22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License

Copyright (c) 2012-2019 Pedro de Oliveira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

216 changes: 137 additions & 79 deletions README
Original file line number Diff line number Diff line change
@@ -1,199 +1,257 @@
Introduction
============
== Introduction

This is an encryption add-on for irssi, it's based on blowfish. It
supports private messages and channel encryption in ECB and CBC
modes. It also includes a secure key-exchange system.
FiSH is an encryption add-on module for https://irssi.org/[irssi]. Uses
the https://en.wikipedia.org/wiki/Blowfish_(cipher)[Blowfish cipher] to
encrypt private and public messages in *ECB* or *CBC* modes, using a
specified key. It also includes a secure Diffie-Hellman key exchange for
private chat.

Requirements
============
== Requirements

The requirements for building FiSH-irssi are:

- cmake
- pkg-config
- Glib 2.0
- OpenSSL
- irssi (with includes)
* cmake
* pkg-config
* Glib 2.0
* OpenSSL
* irssi (with includes)

Debian / Ubuntu
---------------
=== Debian - Ubuntu

# apt-get install build-essential irssi-dev libglib2.0-dev libssl-dev cmake git
....
# apt-get install build-essential irssi-dev libglib2.0-dev libssl-dev cmake git
....

OpenBSD
-------
=== OpenBSD

# pkg_add glib2 irssi cmake git
....
# pkg_add glib2 irssi cmake git
....

Arch Linux
----------
=== FreeBSD

# pacman -S cmake pkg-config glib2 openssl irssi
* https://www.freshports.org/irc/irssi-fish/[Official package]

CentOS / Fedora
---------------
=== Arch Linux

# yum install gcc pkgconfig cmake irssi irssi-devel openssl openssl-devel glib2 glib2-devel
....
# pacman -S cmake pkg-config glib2 openssl irssi
....

Building
========
* https://aur.archlinux.org/packages/fish-irssi-git/[AUR package]

=== CentOS - Fedora

....
yum install gcc pkgconfig cmake irssi irssi-devel openssl openssl-devel glib2 glib2-devel
....

* @duritong
https://copr.fedorainfracloud.org/coprs/duritong/irssi-fish/[copr
repository] with binary packages

== Building

Just type in the following commands:

$ git clone https://github.com/falsovsky/FiSH-irssi.git
$ cd FiSH-irssi
$ cmake .
$ make
....
$ git clone https://github.com/falsovsky/FiSH-irssi.git
$ cd FiSH-irssi
$ cmake .
$ make
....

If you want to install to **/usr** instead of **/usr/local**
If you want to install to */usr* instead of */usr/local*

$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
$ make
....
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
$ make
....

Run `make install` as a privileged user (if needed) to install it.

Running
=======
== Running

If you installed the module in the default directory, you just need to
run the following command inside irssi to load it:

/load fish
....
/load fish
....

If not, just include the path while loading:

/load /home/username/libfish.so
....
/load /home/username/libfish.so
....

Load automatically at start-up
------------------------------
=== Load automatically at start-up

echo "load fish" >> /home/username/.irssi/startup
....
echo "load fish" >> /home/username/.irssi/startup
....

Configurations
==============
== Configurations

FiSH-irssi has some configurations that can be set via `/set` on irssi.

process_outgoing
....
process_outgoing
....

FiSH outgoing messages.

Default value is 1

process_incoming
....
process_incoming
....

unFiSH incoming messages.

Default value is 1

auto_keyxchange
....
auto_keyxchange
....

Do an automatic key exchange in private messages.

Default value is 1

plain_prefix
....
plain_prefix
....

Prefix needed to send an unFiSHed message. For example:

`+p Hi there in clear text`

Default value is `+p`
Default value is `+p `

mark_encrypted
....
mark_encrypted
....

String used to mark a FiSHed message.

Default value is `\002>\002`
Default value is `\002>\002 `

mark_position
....
mark_position
....

Defines if the mark should be a prefix (1) or a suffix (0).

Default value is 1

nicktracker
....
nicktracker
....

Allows seamless conversations when your chat partner changes his nick.
This feature will copy the old key to use with his new nick. It affects
nick changes for opened queries!

Default value is 1

mark_broken_block
....
mark_broken_block
....

Indicates whether a message is incomplete.

Default value is `\002&\002`

Commands
========
== Commands

/topic+ <message>
....
/topic+ <message>
....

Sets a FiSHed topic in the current channel.

/topic+ TAB
....
/topic+ TAB
....

Allows to edit a FiSHed topic.

/notice+ [nick / #channel] <message>
....
/notice+ [nick / #channel] <message>
....

Sends a FiSHed notice to the current window or to the specified target.

/me+ <message>
....
/me+ <message>
....

Send a FiSHed action to the current window.

/setkey [servertag] [nick / #channel] <key>
....
/setkey [servertag] [nick / #channel] <key>
....

Sets the key used to FiSH the messages for the current window or to the
specified target. To use CBC mode, prefix the key with "cbc:".
specified target. To use CBC mode, prefix the key with `cbc:`.

/delkey [servertag] [nick/#channel]
....
/delkey [servertag] [nick/#channel]
....

Unsets the key used to FiSH the messages for the current window or to
the specified target.

/key|showkey [servertag] [nick / #channel]
....
/key|showkey [servertag] [nick / #channel]
....

Shows the used key to FiSH the messages for the current window or to the
specified target. The key will appear in the target window.

/keyx [-ecb] [nick]
....
/keyx [-ecb|-cbc] [nick]
....

Forces a DH key exchange in the current window or to the specified
target. The default mode is CBC, use "-ecb" to use ECB Mode.
target. The default mode is CBC, use the `-ecb` parameter to force ECB
mode.

/setinipw <password>
....
/setinipw <password>
....

Sets a custom password used to cipher the contents of blow.ini.

/unsetinipw
....
/unsetinipw
....

Unset the custom password used to cipher blow.ini.

/fishlogin
....
/fishlogin
....

Used to ask again for the blow.ini password if the user inserts an
invalid password at start-up.

/fishhelp|helpfish
....
/fishhelp|helpfish
....

Show a little help inside irssi.

Tested
======
== Tested

FiSH-irssi has been tested on various OS and arches:

- Linux/x86
- Linux/sparc
- Linux/arm
- OpenBSD/x86
- OpenBSD/macppc
- OpenBSD/sgi
- FreeBSD/x86
- NetBSD/x86

* Linux/x86
* Linux/sparc
* Linux/arm
* OpenBSD/x86
* OpenBSD/macppc
* OpenBSD/sgi
* FreeBSD/x86
* NetBSD/x86
Loading