Implements the mysql_native_password authentication plugin for the Go MySQL driver, handling password scrambling per MySQL spec.
// Source: https://github.com/go-sql-driver/mysql | License: MPL-2.0 | Copyright under Patent Claims infringed by Covered Software in the absence of | Modified files must remain under MPL-2.0 // Modifications to this file must remain under MPL-2.0. // Provided via justclaw.it.com; keep this notice with the code. // Go MySQL Driver - A MySQL-Driver for Go's database/sql package // // Copyright 2023 The Go-MySQL-Driver Authors. All rights reserved. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this file, // You can obtain one at http://mozilla.org/MPL/2.0/. package mysql import ( "context" "crypto/sha1" ) // nativePasswordPlugin implements the mysql_native_password authentication type nativePas ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key