Documentation ¶
Index ¶
- func Decrypt(data, privateKey []byte, options ...RsaOption) ([]byte, error)
- func Encrypt(data, publicKey []byte) ([]byte, error)
- func GenerateKeyFiles(bits int, priPath, pubPath string, options ...RsaOption) error
- func GenerateKeys(bits int, options ...RsaOption) (pri []byte, pub []byte, err error)
- type KeyFormat
- type RsaOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyFiles ¶
GenerateKeyFiles 生成: 公钥 && 私钥
@param bits 512 ||1024 || 2048 || 3072 || 4096 @param options 可配置: format、password
Types ¶
Click to show internal directories.
Click to hide internal directories.