mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-03 19:17:29 -05:00 
			
		
		
		
	bcrypt: wrong cost flag name (#7168)
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Tests / test (./cmd/caddy/caddy, ~1.24.1, ubuntu-latest, 0, 1.24, linux) (push) Failing after 2m14s
				
			
		
			
				
	
				Tests / test (s390x on IBM Z) (push) Has been skipped
				
			
		
			
				
	
				Tests / goreleaser-check (push) Has been skipped
				
			
		
			
				
	
				Cross-Build / build (~1.24.1, 1.24, aix) (push) Successful in 1m22s
				
			
		
			
				
	
				Cross-Build / build (~1.24.1, 1.24, darwin) (push) Successful in 1m36s
				
			
		
			
				
	
				Cross-Build / build (~1.24.1, 1.24, dragonfly) (push) Successful in 1m27s
				
			
		
			
				
	
				Cross-Build / build (~1.24.1, 1.24, freebsd) (push) Successful in 1m29s
				
			
		
			
				
	
				Cross-Build / build (~1.24.1, 1.24, illumos) (push) Successful in 1m29s
				
			
		
			
				
	
				Cross-Build / build (~1.24.1, 1.24, linux) (push) Successful in 1m31s
				
			
		
			
				
	
				Cross-Build / build (~1.24.1, 1.24, netbsd) (push) Successful in 1m33s
				
			
		
			
				
	
				Cross-Build / build (~1.24.1, 1.24, openbsd) (push) Successful in 1m36s
				
			
		
			
				
	
				Cross-Build / build (~1.24.1, 1.24, solaris) (push) Successful in 1m26s
				
			
		
			
				
	
				Cross-Build / build (~1.24.1, 1.24, windows) (push) Successful in 1m27s
				
			
		
			
				
	
				Lint / lint (ubuntu-latest, linux) (push) Successful in 2m24s
				
			
		
			
				
	
				Lint / govulncheck (push) Successful in 1m41s
				
			
		
			
				
	
				Lint / dependency-review (push) Failing after 54s
				
			
		
			
				
	
				Tests / test (./cmd/caddy/caddy, ~1.24.1, macos-14, 0, 1.24, mac) (push) Has been cancelled
				
			
		
			
				
	
				Tests / test (./cmd/caddy/caddy.exe, ~1.24.1, windows-latest, True, 1.24, windows) (push) Has been cancelled
				
			
		
			
				
	
				Lint / lint (macos-14, mac) (push) Has been cancelled
				
			
		
			
				
	
				Lint / lint (windows-latest, windows) (push) Has been cancelled
				
			
		
			
				
	
				OpenSSF Scorecard supply-chain security / Scorecard analysis (push) Has started running
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Tests / test (./cmd/caddy/caddy, ~1.24.1, ubuntu-latest, 0, 1.24, linux) (push) Failing after 2m14s
				
			Tests / test (s390x on IBM Z) (push) Has been skipped
				
			Tests / goreleaser-check (push) Has been skipped
				
			Cross-Build / build (~1.24.1, 1.24, aix) (push) Successful in 1m22s
				
			Cross-Build / build (~1.24.1, 1.24, darwin) (push) Successful in 1m36s
				
			Cross-Build / build (~1.24.1, 1.24, dragonfly) (push) Successful in 1m27s
				
			Cross-Build / build (~1.24.1, 1.24, freebsd) (push) Successful in 1m29s
				
			Cross-Build / build (~1.24.1, 1.24, illumos) (push) Successful in 1m29s
				
			Cross-Build / build (~1.24.1, 1.24, linux) (push) Successful in 1m31s
				
			Cross-Build / build (~1.24.1, 1.24, netbsd) (push) Successful in 1m33s
				
			Cross-Build / build (~1.24.1, 1.24, openbsd) (push) Successful in 1m36s
				
			Cross-Build / build (~1.24.1, 1.24, solaris) (push) Successful in 1m26s
				
			Cross-Build / build (~1.24.1, 1.24, windows) (push) Successful in 1m27s
				
			Lint / lint (ubuntu-latest, linux) (push) Successful in 2m24s
				
			Lint / govulncheck (push) Successful in 1m41s
				
			Lint / dependency-review (push) Failing after 54s
				
			Tests / test (./cmd/caddy/caddy, ~1.24.1, macos-14, 0, 1.24, mac) (push) Has been cancelled
				
			Tests / test (./cmd/caddy/caddy.exe, ~1.24.1, windows-latest, True, 1.24, windows) (push) Has been cancelled
				
			Lint / lint (macos-14, mac) (push) Has been cancelled
				
			Lint / lint (windows-latest, windows) (push) Has been cancelled
				
			OpenSSF Scorecard supply-chain security / Scorecard analysis (push) Has started running
				
			This commit is contained in:
		
							parent
							
								
									49dac61b07
								
							
						
					
					
						commit
						4bfc3b95b5
					
				@ -32,7 +32,7 @@ import (
 | 
				
			|||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
	caddycmd.RegisterCommand(caddycmd.Command{
 | 
						caddycmd.RegisterCommand(caddycmd.Command{
 | 
				
			||||||
		Name:  "hash-password",
 | 
							Name:  "hash-password",
 | 
				
			||||||
		Usage: "[--plaintext <password>] [--algorithm <name>] [--cost <difficulty>]",
 | 
							Usage: "[--plaintext <password>] [--algorithm <name>] [--bcrypt-cost <difficulty>]",
 | 
				
			||||||
		Short: "Hashes a password and writes base64",
 | 
							Short: "Hashes a password and writes base64",
 | 
				
			||||||
		Long: `
 | 
							Long: `
 | 
				
			||||||
Convenient way to hash a plaintext password. The resulting
 | 
					Convenient way to hash a plaintext password. The resulting
 | 
				
			||||||
@ -44,7 +44,7 @@ not be echoed.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
--algorithm currently only supports 'bcrypt', and is the default.
 | 
					--algorithm currently only supports 'bcrypt', and is the default.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
--cost sets the bcrypt hashing difficulty.
 | 
					--bcrypt-cost sets the bcrypt hashing difficulty.
 | 
				
			||||||
Higher values increase security by making the hash computation slower and more CPU-intensive.
 | 
					Higher values increase security by making the hash computation slower and more CPU-intensive.
 | 
				
			||||||
If the provided cost is not within the valid range [bcrypt.MinCost, bcrypt.MaxCost],
 | 
					If the provided cost is not within the valid range [bcrypt.MinCost, bcrypt.MaxCost],
 | 
				
			||||||
the default value (defaultBcryptCost) will be used instead.
 | 
					the default value (defaultBcryptCost) will be used instead.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user