Versions in this module Expand all Collapse all v0 v0.0.2 Jan 20, 2025 v0.0.1 Jan 20, 2025 Changes in this version + func BinAbsPath() string + func FileCreateAll(file string) (*os.File, error) + func FileIsExist(path string) bool + func FileUserHome() string + func JsonParseStr(jsonData string, obj interface{}) error + func JsonToStr(obj interface{}) (string, error) + func RSADecrypt(privateKey *rsa.PrivateKey, ciphertext []byte) ([]byte, error) + func RSAEncrypt(publicKey *rsa.PublicKey, data []byte) ([]byte, error) + func RSAGenerateKeys(bits int) (*rsa.PrivateKey, *rsa.PublicKey, error) + func RSALoadPrivatePEMKey(fileName string) (*rsa.PrivateKey, error) + func RSALoadPublicPEMKey(fileName string) (*rsa.PublicKey, error) + func RSASavePrivatePEMKey(filename string, key *rsa.PrivateKey) error + func RSASavePublicPEMKey(filename string, pubkey *rsa.PublicKey) error