Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SecurityInnovation/PGPy
/ gen_key
Method
gen_key
pgpy/constants.py:244–245 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
242
return
os.urandom(self.block_size // 8)
243
244
def
gen_key(self):
245
return
os.urandom(self.key_size // 8)
246
247
248
class
PubKeyAlgorithm(IntEnum):
Callers
3
encrypt
Method · 0.80
encrypt
Method · 0.80
test_encrypt_passphrase_2
Method · 0.80
Calls
no outgoing calls
Tested by
1
test_encrypt_passphrase_2
Method · 0.64