Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

mpolden/fish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fish

Build Status

Implementation of FiSH IRC encryption in Go.

Installation

go get github.com/mpolden/fish

Usage

Basic example:

package main

import (
    "github.com/mpolden/fish"
    "log"
)

func main() {
    key := "secret key"
    message := "some message"

    enc, err := fish.Encrypt(key, message)
    if err != nil {
        log.Fatalf("Failed to encrypt: %s", err)
    }
    log.Printf("Encrypted: %s => %s", message, enc)

    dec, err := fish.Decrypt(key, enc)
    if err != nil {
        log.Fatalf("Failed to decrypt: %s", err)
    }
    log.Printf("Decrypted: %s => %s", enc, dec)
}

About

Implementation of FiSH IRC encryption in Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published