crypto

package
v0.0.0-...-b509d7c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RsA

func RsA(bits int)

*

  • Todo: Make PublicKey & PrivateKey
  • - bits 1024, 2048 ...
  • - Private Key File
  • - Public Key File

*

Types

type AeSPoT

type AeSPoT struct {
	// contains filtered or unexported fields
}

func (*AeSPoT) DecrypT

func (aes *AeSPoT) DecrypT(cipherTxT interface{}) (interface{}, error)

func (*AeSPoT) EncrypT

func (aes *AeSPoT) EncrypT(d interface{}) (interface{}, error)

type PoT

type PoT struct {
	Mode interface{}
	D    []interface{}
}

func New

func New() *PoT

func (*PoT) Made

func (cryptoPoT *PoT) Made() (interface{}, error)

type RsAPoT

type RsAPoT struct {
	// contains filtered or unexported fields
}

func (*RsAPoT) DecrypT

func (rsaPoT *RsAPoT) DecrypT(cipherTxT interface{}) (interface{}, error)

decrypt by using private Key

func (*RsAPoT) EncrypT

func (rsaPoT *RsAPoT) EncrypT(d string) (interface{}, error)

encrypt by using Public Key

type SimplyPoT

type SimplyPoT struct {
}

Jump to

Keyboard shortcuts

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