Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func HashPassword ¶
Types ¶
type CryptoManager ¶
type CryptoManager interface { GetBits() int CreatePubPriKey() (*rsa.PrivateKey, *rsa.PublicKey) PrivateKeyToBytes(pri *rsa.PrivateKey) []byte PublicKeyToBytes(pub *rsa.PublicKey) []byte BytesToPrivateKey(priv []byte) *rsa.PrivateKey BytesToPublicKey(pub []byte) *rsa.PublicKey EncryptWithPublicKey(msg []byte, pub *rsa.PublicKey) []byte DecryptWithPrivateKey(ciphertext []byte, priv *rsa.PrivateKey) []byte }
func NewCryptoManager ¶
func NewCryptoManager(bits int) CryptoManager
Click to show internal directories.
Click to hide internal directories.