Generate Pgp Public Key Online

May 28, 2015  This blog describes how to generate a private/public key pair using GPG version 1.4.5. The resulting public key will contain two keys, one key for signing and a subkey for encryption. This key can be used with HCM Fusion SaaS to encrypt/decrypt files as they are transferred to.

  • Generate an ECDSA SSH keypair with a 521 bit private key. Ssh-keygen -t ecdsa -b 521 -C 'ECDSA 521 bit Keys' Generate an ed25519 SSH keypair- this is a new algorithm added in OpenSSH. Ssh-keygen -t ed25519 Extracting the public key from an RSA keypair. Openssl rsa -pubout -in privatekey.pem -out publickey.pem.
  • Generate online private and public key for ssh, putty, github, bitbucket Save both of keys on your computer (text file, dropbox, evernote etc)!!! The generated keys are RANDOM and CAN'T be restored. You can create keys without creating an account.

The current OpenPGP standard uses key pairs with RSA, DH/DSS, and ECC asymmetric encryption keys. In this chapter, we are going to generate an RSA key pair with DidiSoft OpenPGP Library for .NET.

Each OpenPGP key pair contains additional information which we have to specify upfront:

Generate Pgp Public Key Online Login

  • User ID of the key owner, usually in the form “Person name or Organization name <owners_email@website>
  • Size in bits of the encryption key (must be over 1024 and up to 4096)
  • list of preferred symmetric encryption algorithms
  • list of preferred hash algorithms
  • list of preferred compression algorithms
  • key expiration date (if the key will be with a time-limited use)

The original PGP(r) software uses a naming convention for delimiting the email in the User ID label with < and > like: “Richard C. <richard.c@site.com>”

Generate RSA based OpenPGP key pair

Below is a short example program that shows how to generate an RSA OpenPGP key pair in a KeyStore object.

C# example

Generate pgp public key online banking

VB.NET example

The above code generates a key pair that does not expire. An overloaded method exists that accepts an expiration date as the last parameter. A key pair can also be generated without using a KeyStore, through a similar method in the PGPKeyPair class.

After the key pair is generated it can be exported. Usually, we will send the public key part of it to our partners.

Below is a screenshot of the key properties after the key is imported in PGP (r) Desktop version 10. Please note that in our example above we have omitted the < > around the email part of the User ID and that’s why PGP(r) displays the name and email part of the User ID together.

Generate pgp public key online, free

Async support

In order to create a key pair asynchronously, we have to use the DidiSoft.Pgp.KeyStoreAsync class which provides the same key creation methods with Async suffixes.

Summary

Online

In this chapter, we have discussed RSA OpenPGP key generation with DidiSoft OpenPGP Library for .NET.

You may also consider reading DH/DSS OpenPGP key pair generation, ECC key pair generation, keys exporting and importing.

Example application

Pgp Public Key Server

In the library installation folder under the Examples subfolder, you can find the project KeyToolCS (KeyToolVB for VB.NET), a demo WinForms application that illustrates OpenPGP key generation as well as many other operations that can be performed over OpenPGP keys.

Pgp Public Key Generator

List of methods used:

Public Pgp Key Example

KeyStore.GenerateKeyPair
KeyStore.GenerateRsaKeyPair