mirror of
				https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
				synced 2025-11-04 04:06:06 +00:00 
			
		
		
		
	util.py - implemented generate key method
This commit is contained in:
		@@ -15,3 +15,7 @@ def load_file(filename) -> bytes:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
def load_key(filename) -> RsaKey:
 | 
					def load_key(filename) -> RsaKey:
 | 
				
			||||||
    return RSA.import_key(extern_key=load_file(filename), passphrase=None)
 | 
					    return RSA.import_key(extern_key=load_file(filename), passphrase=None)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def generate_key() -> RsaKey:
 | 
				
			||||||
 | 
					    return RSA.generate(bits=2048)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user