damico / openpgp-bouncecastle-example Goto Github PK
View Code? Open in Web Editor NEWThis is an OpenPgp + BounceCastle, Java Example, for education.
This is an OpenPgp + BounceCastle, Java Example, for education.
The PGPHelper class has compilation error in the latest version of BouncyCastle jar.
I've updated the code:
Added at line 142:
BcKeyFingerprintCalculator bcKeyFingerprintCalculator = new BcKeyFingerprintCalculator();
Line 143:
PGPObjectFactory pgpF = new PGPObjectFactory(in, bcKeyFingerprintCalculator);
I've done similar changes in other methods as well.
Does this work?
i have used the encryption function and it worked perfectly. But instead of inputting files i actually need to input the parameters as string. How do i do that?
create a text file to be encripted, before run the tests
private String plainTextFile = ".../plain-text.txt";
//create a text file to be encripted, before run the tests
Solution:
Simple insert to TestBCOpenPGP:
@Before
public void setUp() throws Exception {
if(Files.notExists(Paths.get(plainTextFile)))
{
byte[] rand = new byte[819200];
new SecureRandom().nextBytes(rand);
Files.write(Paths.get(plainTextFile), Base64.getEncoder().encode(rand));
}
}
I think new examples are available now !!! Please update the code.
http://sloanseaman.com/wordpress/2012/05/13/revisited-pgp-encryptiondecryption-in-java/
When i try to encrypt the large file(200 MB) its working pretty fast. But When i try to decrypt the file its taking around 15 mins. Please let me know how to over come that.
How to use PgpHelper class for encryption and decryption ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.