Documentation ¶
Index ¶
- Variables
- func CalculateDecodingTable(encodingTable []byte) (res []byte)
- func ConvertMapToString(src map[string]string) string
- func ConvertStringToMap(s string) (map[string]string, error)
- func CreatePublicPrivatePair(publicName string, privateName string, bits int) error
- func DecodeByteLine(src []byte) ([]byte, error)
- func DecodeLine(s string) (string, error)
- func DecryptMap(inKey string, s string, predecode bool) (map[string]string, error)
- func DecryptString(inKey string, s string, predecode bool) (string, error)
- func EncodeByteLine(src []byte) []byte
- func EncodeLine(s string) string
- func EncryptMap(inKey string, src map[string]string, final bool) (string, error)
- func EncryptString(inKey string, s string, final bool) (string, error)
- func GetPrivateKey(key string) (*rsa.PrivateKey, error)
- func GetPublicKey(key string) (*rsa.PublicKey, error)
- func GetRandomUuid() string
- func GetUuidByByteArray(b []byte) string
- func GetUuidByLong(a1 uint64, a2 uint64) string
- func InitBySettings(parameters map[string]string, functionPool map[string]interface{})
- func IsValidUUID(uuid string) bool
- func LoadEncodedData(path string) ([]byte, error)
- func LoadPrivateKey(key string) (*rsa.PrivateKey, error)
- func LoadPublicKey(key string) (*rsa.PublicKey, error)
- func PutUInt64ToByteArray(b []byte, a uint64)
- func SaveEncodedData(path string, data []byte) error
- func SavePrivateKey(keyName string, key *rsa.PrivateKey) error
- func SavePublicKey(keyName string, key *rsa.PublicKey) error
- func SetEncodingPattern(pattern string)
- func SetKeyFolder(path string)
Constants ¶
This section is empty.
Variables ¶
View Source
var SimpleDecodingTable = CalculateDecodingTable(SimpleEncodingTable)
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 ConvertMapToString ¶
func CreatePublicPrivatePair ¶
func DecodeByteLine ¶
func DecodeLine ¶
func DecryptMap ¶
func EncodeByteLine ¶
func EncodeLine ¶
func GetPrivateKey ¶
func GetPrivateKey(key string) (*rsa.PrivateKey, error)
func GetRandomUuid ¶
func GetRandomUuid() string
func GetUuidByByteArray ¶
func GetUuidByLong ¶
func InitBySettings ¶
func IsValidUUID ¶ added in v1.0.2
func LoadEncodedData ¶
func LoadPrivateKey ¶
func LoadPrivateKey(key string) (*rsa.PrivateKey, error)
func PutUInt64ToByteArray ¶
func SaveEncodedData ¶
func SavePrivateKey ¶
func SavePrivateKey(keyName string, key *rsa.PrivateKey) error
func SetEncodingPattern ¶
func SetEncodingPattern(pattern string)
func SetKeyFolder ¶
func SetKeyFolder(path string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.