cryptotransmit

package
Version: v0.0.0-...-3dd77f1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package cryptotransmit is a verfication handler of Rest Snap

The aim of this package is to ensure the data must be get and use from the same computer since the API data may be updated

The data will be convert as signature after HTTP respond, and will wait to verify if needed

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptSet

type CryptSet struct {
	EncData []byte
	DS      DataSign
}

CryptSet containing encryted data and data signature

func CreateCryptSet

func CreateCryptSet(data []byte) CryptSet

CreateCryptSet : Export CryptSet type

type DataSign

type DataSign struct {
	Sign []byte
	Sum  []byte
}

DataSign coniains signature, sum and verify tools

type RSKeySet

type RSKeySet struct {
	CryptPublicKey string `json:"crypt_public_key"` //Public key for encryption
	SignPrivateKey string `json:"sign_private_key"` //Private key for signature
	Append         string `json:"append"`           //String append
}

RSKeySet is a type allows JSON formatted to store unique data for crypto

All data must be generated from Java

Jump to

Keyboard shortcuts

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