Answers for "Generating Public and Private Key"

0

create public key from private

chmod 400 ~/.ssh/id_rsa
ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
Posted by: Guest on September-08-2020
0

Generating Public and Private Key

# the directory where the keys are to be stored
# in this case we are using the current file directory
path = Path(__file__).absolute().parent

# initialize the encrypter
encryption = Encryption(path, name=('public_key.pem', 'private1.pem'))

# generates both private and public keys
encryption.generate_keys()
Posted by: Guest on May-14-2021

Code answers related to "Generating Public and Private Key"

Browse Popular Code Answers by Language