mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-30 18:22:49 -04:00 
			
		
		
		
	caddyauth: hash-password: Set bcrypt cost to 14 (#3580)
This commit is contained in:
		
							parent
							
								
									6f0f159ba5
								
							
						
					
					
						commit
						8a0fff58aa
					
				| @ -116,7 +116,7 @@ func cmdHashPassword(fs caddycmd.Flags) (int, error) { | ||||
| 	var hash []byte | ||||
| 	switch algorithm { | ||||
| 	case "bcrypt": | ||||
| 		hash, err = bcrypt.GenerateFromPassword(plaintext, bcrypt.DefaultCost) | ||||
| 		hash, err = bcrypt.GenerateFromPassword(plaintext, 14) | ||||
| 	case "scrypt": | ||||
| 		def := ScryptHash{} | ||||
| 		def.SetDefaults() | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user