◂ Free & easy to use client-side PGP key generator ▸ Generate a PGP key pair Use the form below to generate a PGP key pair. Options Enter your name Enter a valid email address Enter any optional comments AlgorithmRSA (Recommended)ECC (Elliptic Curve Cryptography) ...
// 导入相应的类importorg.bouncycastle.bcpg.ArmoredOutputStream;importorg.bouncycastle.openpgp.*;importorg.bouncycastle.openpgp.operator.jcajce.JcaPGPKeyPair;importorg.bouncycastle.openpgp.operator.jcajce.JcaPGPKeyPairGenerator;importorg.bouncycastle.openpgp.operator.jcajce.JcePBESecretKeyEncryptorBuilder;import...
JcaPGPKeyPairGenerator:使用 Bouncy Castle 的密钥对生成工具来生成 PGP 密钥。 3. 保存公钥 完成密钥对生成后,我们需要将公钥保存到文件中。 importorg.bouncycastle.openpgp.PGPUtil;importorg.bouncycastle.openpgp.PGPSecretKey;importorg.bouncycastle.openpgp.jcajce.JcaPGPSecretKeyRingGenerator;importjava.io.File...
PGPKeyPair类属于org.bouncycastle.openpgp包,在下文中一共展示了PGPKeyPair类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。 示例1: createPGPKeyRingGenerator
*/publicstaticvoidgeneratePGPKeyPair(int keySize,String passPhrase,String identity,String pubKeyFile,String priKeyFile,String path)throws Exception{createDirectory(path);KeyPairGenerator keyPairGenerator=KeyPairGenerator.getInstance(RSA,PROVIDER_BC);keyPairGenerator.initialize(keySize);KeyPair keyPair=keyPa...
internalPgpSecretKey( SecretKeyPacket secret,PgpPublicKeypub) {this.secret = secret;this.pub = pub; } 开发者ID:KimikoMuffin,项目名称:bc-csharp,代码行数:7,代码来源:PgpSecretKey.cs 示例5: PgpKeyPair ▲点赞 1▼ publicPgpKeyPair( PublicKeyAlgorithmTag algorithm, ...
生成公钥和私钥对,RSA算法,无参数,返回公钥-私钥对"[](let[key-pair-gen(KeyPairGenerator/getInstance"RSA")](.initialize key-pair-gen1024)(let[key-pair(.generateKeyPair key-pair-gen)](.getPublic key-pair)(map #(BASE64-encoder(.getEncoded%))[(.getPublic key-pair)(.getPrivate key-pair)])...
PGP Key Generator is a JavaScript program that enables key pair generation and can be executed in most web browsers. You can use the open-source service free of charge and without needing to register. First, enter the required specifications for the keys in theOptionsform. Then click onGenerat...
After you install your PGP key generator software, you run thegpg --full-gen-keyorgpg --gen-keycommand to generate a key pair. Note If you're usingGnuPGversion 2.3.0 or newer, you must rungpg --full-gen-key. When prompted for the type of key to create, choose RSA or ECC. Howev...