Skip to content

holdatech/gopot

Repository files navigation

GoDoc Go Go Report Card

gopot

Platform of Trust utility functions for go.

Getting the library

go get -u github.com/holdatech/gopot/v4

Usage

package main

import (
	"fmt"

	"github.com/holdatech/gopot/v4"
)

func main() {
	var secretKey, _ = rsa.GenerateKey(rand.Reader, 4096)

	payload := struct {
		Hello string `json:"hello"`
	}{
		Hello: "World",
	}

	signature, err := gopot.CreateSignature(payload, secretKey)
	if err != nil {
		panic(err)
	}

	fmt.Println(signature)
}

About

Platform of Trust utility functions for go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages