MySQL caching_sha2 Hash Generator

MySQL 8+ uses caching_sha2_password as the default authentication plugin. It provides modern SHA‑256–based hashing and faster handshakes via server‑side caching.

mysql_native_password (double‑SHA1) is legacy/deprecated and discouraged for new users. Prefer caching_sha2_password for better security and compatibility.



		
		


		
		


		

Tip: Copy with Ctrl+C. The salt is randomized each request.

Automation API

Endpoint: POST /hash  |  Content-Type: application/json

Quick example:



		

Request JSON:

{
  "password": "your-password"
}

Response JSON:

{
  "ascii": "$A$005$<salt><digest>",
  "hex": "0x<hex-encoded-ascii-string>"
}

Interactive docs: /docs  |  OpenAPI spec: /openapi.json