Skip to content

blowfishj-go ports CTS encryption and decryption from blowfishj.

License

Notifications You must be signed in to change notification settings

znbang/blowfishj-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blowfishj-go

blowfishj-go ports CTS encryption and decryption from blowfishj.

Install

go get github.com/znbang/blowfishj-go 

Usage

package main

import (
	"fmt"
	
	"github.com/znbang/blowfishj-go"
)

const (
	Password = "Pa$$w0rd"
	PlainText = "Text to encrypt"
)

func main() {
	encryptedText, err := blowfishj.Encrypt(Password, PlainText)
	if err != nil {
		panic(err)
	}
	fmt.Println("Encrypted text:", encryptedText)
	decryptedText, err := blowfishj.Decrypt(Password, encryptedText)
	if err != nil {
		panic(err)
	}
	fmt.Println("Decrypted text:", decryptedText)
}

About

blowfishj-go ports CTS encryption and decryption from blowfishj.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages