replace

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const Caesar = "DEFGHIJKLMNOPQRSTUVWXYZABCdefghijklmnopqrstuvwxyzabc3456789012"

Caesar cipher key

View Source
const DefaultKey = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"

DefaultKey for replace crypto

Variables

View Source
var CaesarTable = GenerateReplaceTable("DEFGHIJKLMNOPQRSTUVWXYZABCdefghijklmnopqrstuvwxyzabc3456789012", 0)

CaesarTable cipher key

Functions

func GenerateDecryptionKey

func GenerateDecryptionKey(key map[rune]rune) (dKey map[rune]rune)

GenerateDecryptionKey using encryption key

func GenerateReplaceTable

func GenerateReplaceTable(keyString string, offset int) (key map[rune]rune)

GenerateReplaceTable from key

func ReplacePassword

func ReplacePassword(plainText string, key map[rune]rune) (secretText string)

ReplacePassword using key

Types

This section is empty.

Jump to

Keyboard shortcuts

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