MCPcopy
hub / github.com/go-sql-driver/mysql / sendEncryptedPassword

Method sendEncryptedPassword

auth.go:269–275  ·  auth.go::mysqlConn.sendEncryptedPassword
(seed []byte, pub *rsa.PublicKey)

Source from the content-addressed store, hash-verified

267}
268
269func (mc *mysqlConn) sendEncryptedPassword(seed []byte, pub *rsa.PublicKey) error {
270 enc, err := encryptPassword(mc.cfg.Passwd, seed, pub)
271 if err != nil {
272 return err
273 }
274 return mc.writeAuthSwitchPacket(enc)
275}
276
277func (mc *mysqlConn) auth(authData []byte, plugin string) ([]byte, error) {
278 switch plugin {

Callers 1

handleAuthResultMethod · 0.95

Calls 2

writeAuthSwitchPacketMethod · 0.95
encryptPasswordFunction · 0.85

Tested by

no test coverage detected