{"record":{"id":"f51e8d014cea99fb","repo":"caddyserver/caddy","slug":"unrecognized-hash-algorithm-s","errorCode":null,"errorMessage":"unrecognized hash algorithm: %s","messagePattern":"unrecognized hash algorithm: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"modules/caddyhttp/caddyauth/command.go","lineNumber":175,"sourceCode":"\t\tthreads, err := fs.GetUint8(\"argon2id-threads\")\n\t\tif err != nil {\n\t\t\treturn caddy.ExitCodeFailedStartup, fmt.Errorf(\"failed to get argon2id threads parameter: %w\", err)\n\t\t}\n\t\tkeyLen, err := fs.GetUint32(\"argon2id-keylen\")\n\t\tif err != nil {\n\t\t\treturn caddy.ExitCodeFailedStartup, fmt.Errorf(\"failed to get argon2id keylen parameter: %w\", err)\n\t\t}\n\n\t\thash, _ = Argon2idHash{\n\t\t\ttime:    time,\n\t\t\tmemory:  memory,\n\t\t\tthreads: threads,\n\t\t\tkeyLen:  keyLen,\n\t\t}.Hash(plaintext)\n\n\t\thashString = string(hash)\n\tdefault:\n\t\treturn caddy.ExitCodeFailedStartup, fmt.Errorf(\"unrecognized hash algorithm: %s\", algorithm)\n\t}\n\tif err != nil {\n\t\treturn caddy.ExitCodeFailedStartup, err\n\t}\n\n\tfmt.Println(hashString)\n\n\treturn 0, nil\n}\n","sourceCodeStart":157,"sourceCodeEnd":185,"githubUrl":"https://github.com/caddyserver/caddy/blob/50e54ee279aa1e504fe218ca49ab6ae16c100410/modules/caddyhttp/caddyauth/command.go#L157-L185","documentation":"Error \"unrecognized hash algorithm: %s\" thrown in caddyserver/caddy.","triggerScenarios":"Thrown at modules/caddyhttp/caddyauth/command.go:175 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported hash algorithm such as 'bcrypt' (default) or 'argon2id' with 'caddy hash-password'."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"50e54ee279aa1e504fe218ca49ab6ae16c100410","analyzedAt":"2026-08-15T09:20:21.641Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}