Skip to content

festum/cryptutil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryptUtil

Travis Go Report Card

A go utility collection for encryption/hash

Usage

AES encryption/decryption Example:

package main

import (
	"fmt"
	"github.com/festum/cryptutil/aes"
)

func main() {
	c := aes.Cryptor{}
	c.Init()

	sampleText := "Sample text"
	encryptedText, err := c.Encrypt([]byte(sampleText))
	if err != nil {
		fmt.Println(err)
	}
	decryptedText, err := c.Decrypt(encryptedText)
	if err != nil {
		fmt.Println(err)
	}

	fmt.Printf("Decypted text: %s\n", decryptedText)
}

About

A go utility collection for encryption/hash

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages