• Post Reply Bookmark Topic Watch Topic
  • New Topic

PGP Encryption using Public Key as String  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can anyone please let me know how to send Public Key as String parameter to PGP encryption methods, i.e. with out using files? any sample code would be helpful.

Thanks,
Veera
 
Saloon Keeper
Posts: 3329
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are we talking about PGP as an executable program, or as a Java library?
 
Veerababu Kanumilli
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Carey Brown,
This is related to Java Library.


Instead if using FileInputStream can we use String for getting PGPPublicKey from PGPPublicKeyRingCollection(). Please let me know if you have any solution.

Thanks,
Veera
 
Veerababu Kanumilli
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Used ByteArrayInputStream to as paramter to PGPPublicKeyRingCollection... It has resolved my issue i.e. using PublicKey as String instead of file.

Is it possible to accept key without breaking into multiple lines?

Thanks,
Veerababu Kanumilli
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!