dvcrypt

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SimpleEncodingTable = []byte{'D', 'o', 'b', 'r', 'y', 'v', 'e', 'c', 'h', 'i', 'R', 'V', 'O', 'l', 'd', 'I',
	'm', 'Y', 'B', 'a', 'n', 'E', 'L', 'z', 'H', 'N', 'A', 'S', 'p', 'f', 'g', 'G'}

Functions

func CalculateDecodingTable

func CalculateDecodingTable(encodingTable []byte) (res []byte)

func ConvertMapToString

func ConvertMapToString(src map[string]string) string

func ConvertStringToMap

func ConvertStringToMap(s string) (map[string]string, error)

func CreatePublicPrivatePair

func CreatePublicPrivatePair(publicName string, privateName string, bits int) error

func DecodeByteLine

func DecodeByteLine(src []byte) ([]byte, error)

func DecodeLine

func DecodeLine(s string) (string, error)

func DecryptMap

func DecryptMap(inKey string, s string, predecode bool) (map[string]string, error)

func DecryptString

func DecryptString(inKey string, s string, predecode bool) (string, error)

func EncodeByteLine

func EncodeByteLine(src []byte) []byte

func EncodeLine

func EncodeLine(s string) string

func EncryptMap

func EncryptMap(inKey string, src map[string]string, final bool) (string, error)

func EncryptString

func EncryptString(inKey string, s string, final bool) (string, error)

func GetPrivateKey

func GetPrivateKey(key string) (*rsa.PrivateKey, error)

func GetPublicKey

func GetPublicKey(key string) (*rsa.PublicKey, error)

func GetRandomUuid

func GetRandomUuid() string

func GetUuidByByteArray

func GetUuidByByteArray(b []byte) string

func GetUuidByLong

func GetUuidByLong(a1 uint64, a2 uint64) string

func InitBySettings

func InitBySettings(parameters map[string]string, functionPool map[string]interface{})

func LoadEncodedData

func LoadEncodedData(path string) ([]byte, error)

func LoadPrivateKey

func LoadPrivateKey(key string) (*rsa.PrivateKey, error)

func LoadPublicKey

func LoadPublicKey(key string) (*rsa.PublicKey, error)

func PutUInt64ToByteArray

func PutUInt64ToByteArray(b []byte, a uint64)

func SaveEncodedData

func SaveEncodedData(path string, data []byte) error

func SavePrivateKey

func SavePrivateKey(keyName string, key *rsa.PrivateKey) error

func SavePublicKey

func SavePublicKey(keyName string, key *rsa.PublicKey) error

func SetEncodingPattern

func SetEncodingPattern(pattern string)

func SetKeyFolder

func SetKeyFolder(path string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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