Skip to content

A Golang implementation of the AES-FFX Format-Preserving Encryption Scheme

License

Notifications You must be signed in to change notification settings

Roasbeef/perm-crypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

perm-crypt

A Golang implementation of the AES-FFX Format-Preserving Encryption Scheme

Installation

$ go get github.com/roasbeef/perm-crypt

Example Usage

key, _ := hex.DecodeString("2b7e151628aed2a6abf7158809cf4f3c")

tweak := []byte("9876543210")

plainString := "0123456789"

ffx, _ := aesffx.NewCipher(10, key, tweak)

cipher, _ := ffx.Encrypt(plainString)

plain, _ := ffx.Decrypt(cipher)
	

WARNING: You probably shouldn't use this in a production environment. This lib was created primarily as yak-shaving for a research project.

About

A Golang implementation of the AES-FFX Format-Preserving Encryption Scheme

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages