zeripath 
		61b89747ed 
		
			
		
	 
	
	
	Provide the ability to set password hash algorithm parameters ( #22942 ) ... 
			This PR refactors and improves the password hashing code within gitea
and makes it possible for server administrators to set the password
hashing parameters
In addition it takes the opportunity to adjust the settings for `pbkdf2`
in order to make the hashing a little stronger.
The majority of this work was inspired by PR #14751  and I would like to
thank @boppy for their work on this.
Thanks to @gusted for the suggestion to adjust the `pbkdf2` hashing
parameters.
Close  #14751 
---------
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
		
	 
		2023-02-19 15:35:20 +08:00 
	 
	
	
		 
	
	
		
			
			
			
			
			
			2023-02-02 20:40:08 +08:00 
		 
	
		
			
			
			
			
			
			2023-02-06 09:49:21 +08:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-19 15:35:20 +08:00 
		 
	
		
			
			
			
			
			
			2023-01-02 22:46:39 +01:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-15 21:37:34 +08:00 
		 
	
		
			
			
			
			
			
			2023-02-09 20:51:36 +08:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-18 20:11:03 +08:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-18 20:11:03 +08:00 
		 
	
		
			
			
			
			
			
			2023-01-05 13:58:51 +02:00 
		 
	
		
			
			
			
			
			
			2022-12-29 10:57:15 +08:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-14 21:23:04 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-15 21:37:34 +08:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-01-29 09:49:51 -06:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-02 11:39:38 -06:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-12 18:09:03 +08:00 
		 
	
		
			
			
			
			
			
			2023-01-26 22:45:49 -06:00 
		 
	
		
			
			
			
			
			
			2022-12-02 22:14:57 +08:00 
		 
	
		
			
			
			
			
			
			2023-02-12 09:31:14 +08:00 
		 
	
		
			
			
			
			
			
			2023-02-03 18:11:48 -05:00 
		 
	
		
			
			
			
			
			
			2023-02-13 15:01:09 -05:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-08 19:54:01 +02:00 
		 
	
		
			
			
			
			
			
			2023-02-18 21:17:39 +02:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-01-31 09:45:19 +08:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-06 10:07:09 +00:00 
		 
	
		
			
			
			
			
			
			2022-12-02 22:14:57 +08:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-01-31 09:45:19 +08:00 
		 
	
		
			
			
			
			
			
			2023-02-03 18:11:48 -05:00 
		 
	
		
			
			
			
			
			
			2023-02-11 08:39:50 +08:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2022-12-30 02:06:47 +02:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-01-31 10:08:05 +01:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-18 20:11:03 +08:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2022-12-02 22:14:57 +08:00 
		 
	
		
			
			
			
			
			
			2023-02-19 15:35:20 +08:00 
		 
	
		
			
			
			
			
			
			2022-12-30 23:31:00 +08:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-01-31 09:45:19 +08:00 
		 
	
		
			
			
			
			
			
			2023-02-18 21:17:39 +02:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-18 21:17:39 +02:00 
		 
	
		
			
			
			
			
			
			2023-02-18 20:11:03 +08:00 
		 
	
		
			
			
			
			
			
			2022-12-20 10:04:55 +08:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-05 15:29:03 +08:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-13 15:01:09 -05:00 
		 
	
		
			
			
			
			
			
			2023-02-08 14:44:42 +08:00 
		 
	
		
			
			
			
			
			
			2022-11-27 18:20:29 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-08 14:44:42 +08:00 
		 
	
		
			
			
			
			
			
			2023-01-01 23:23:15 +08:00