ncrypt

module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT

README

Rather simple rot13 implementation in Go

A simple module i created in go to play with publishing, exports and versioning in Go

In the highly unlikely (not recommended) case you want to use this for your production grade applications

go mod init # if not done already
go get github.com/nav33nb/crypto

Usage

package main

import (
	"fmt"

	"github.com/nav33nb/crypto/rot13"
)

func main() {
	str := "Hello"
	enc := rot13.Rot13(str)
	dec := rot13.Rot13(enc)
	fmt.Println("str == dec ?", str == dec)
}

// OUTPUT
// str == dec ? true

Directories

Path Synopsis
A simple letter substitution cipher, commonly called ROT13.
A simple letter substitution cipher, commonly called ROT13.

Jump to

Keyboard shortcuts

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