Documentation ¶
Index ¶
Constants ¶
View Source
const ( CBCPrefixOK = "+OK *" CBCPrefixMCPS = "mcps *" )
CBC message prefixes.
View Source
const ( EBCPrefixOK = "+OK " EBCPrefixMCPS = "mcps " )
EBC message prefixes.
View Source
const KeyPrefixCBC = "cbc:"
KeyPrefixCBC is the key prefix required to specify CBC mode.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fish ¶
type Fish struct {
// contains filtered or unexported fields
}
Fish is an IRC Blowfish encryption cipher using a specific key and block mode.
func NewFish ¶
NewFish creates and returns a Fish for the specified key. To use CBC block mode the key must be prepended with "cbc:". Fails if the key is invalid.
func (*Fish) Decrypt ¶
Decrypt decrypts the specified msg and returns it. Fails for CBC mode if the decrypted string cannot be decoded.
Click to show internal directories.
Click to hide internal directories.