mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Implements generator cli for secrets (#3531)
Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						Lauris BH
					
				
			
			
				
	
			
			
			
						parent
						
							e59fe7c8d9
						
					
				
				
					commit
					96c268c0fc
				
			@@ -107,12 +107,6 @@ func TestBasicAuthEncode(t *testing.T) {
 | 
			
		||||
	assert.Equal(t, "Zm9vOmJhcg==", BasicAuthEncode("foo", "bar"))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func TestGetRandomString(t *testing.T) {
 | 
			
		||||
	randomString, err := GetRandomString(4)
 | 
			
		||||
	assert.NoError(t, err)
 | 
			
		||||
	assert.Len(t, randomString, 4)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// TODO: Test PBKDF2()
 | 
			
		||||
// TODO: Test VerifyTimeLimitCode()
 | 
			
		||||
// TODO: Test CreateTimeLimitCode()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user