vigenere

package
v0.0.0-...-317c7f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2013 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

package vigenere implements the Vigenere cipher.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanString

func CleanString(s string) string

Cleans a string for use as plaintext of a key. Removes non-letters and converts to upper case

func Decrypt

func Decrypt(ciphertext, key string) string

Decrypt plaintext with given key.

func DecryptBytes

func DecryptBytes(ciphertext, key, destination []byte)

Decrypt plaintext with given key. len(destination) must be greater than or equal to len(plaintext)

func Encrypt

func Encrypt(plaintext, key string) string

Encrypt plaintext with given key.

func EncryptBytes

func EncryptBytes(plaintext, key, destination []byte)

Encrypt plaintext with given key. len(destination) must be greater than or equal to len(plaintext)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL