Skip to content

billmcmath/libcaesar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIT License Circle CI

#libcaesar Caesar cipher library

What is this

This is a library to perform Caesar cipher substitutions on the basic latin characters a-z and A-Z, all other characters will be ignored.

Usage

go get github.com/billmcmath/libcaesar
package main

import (
    "fmt"
    libcaesar "github.com/billmcmath/libcaesar"
)

func main() {
    source := "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG, the quick brown fox jumps over the lazy dog."
    key := int8(10)

    result, _ := libcaesar.Encrypt(key, source)
    plain, _ := libcaesar.Decrypt(key, result)
    fmt.Printf("The plain text is \"%s\"\n", source)
    fmt.Printf("The cipher text is \"%s\"\n", result)
    fmt.Printf("The decrypted text is \"%s\"\n", plain)
}

License

This library is licensed under the MIT license

About

Caesar cipher library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages