Verified Commit 0965aee7 authored by Власов Иван Юрьевич's avatar Власов Иван Юрьевич :rabbit2:
Browse files

Docstring added

parent 34d45e05
No related merge requests found
Pipeline #98341 passed with stage
in 2 minutes and 50 seconds
Showing with 6 additions and 1 deletion
+6 -1
......@@ -2,7 +2,12 @@ from jwcrypto.jwk import JWK
def create_and_save_key(key_file_name="key.jwk"):
""" Generates new RSA key and stores it in file """
"""
Generates new RSA key and stores it in file
Args:
key_file_name (str): save path for jwk key
"""
key = JWK.generate(kty="RSA", size=2048)
with open(key_file_name, "w+") as f:
f.write(key.export())
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment