Documentation ¶
Index ¶
- func DecryptText(secret string, ctStr string) (string, error)
- func DecryptTextWithSecretKey(secretKey *xipher.PrivateKey, ctStr string) (string, error)
- func EncryptDataWithPubKey(pubKey *xipher.PublicKey, data []byte) (string, error)
- func EncryptDataWithPubKeyStr(pubKeyStr string, data []byte) (string, error)
- func GetPublicKey(secret string, quantumSafe bool) (string, error)
- func NewSecretKey() (sk string, err error)
- func PubKeyFromStr(pubKeyStr string) (*xipher.PublicKey, error)
- func SecretKeyFromSecret(secret string) (*xipher.PrivateKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptTextWithSecretKey ¶
func DecryptTextWithSecretKey(secretKey *xipher.PrivateKey, ctStr string) (string, error)
func EncryptDataWithPubKey ¶
func GetPublicKey ¶ added in v1.3.0
func NewSecretKey ¶ added in v1.3.0
func SecretKeyFromSecret ¶ added in v1.3.0
func SecretKeyFromSecret(secret string) (*xipher.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.