I want to know if PGP encryption can be used to encrypt plain text just like the other encryption types(AES,3DES). Is there a way to achieve this?
Asked
Active
Viewed 172 times
-3
-
Someone can tell me what do I need to change in my question? So it can be understandable. – jmvtrinidad Oct 05 '15 at 04:58
-
1It might help to show what code and research you have tried and specifically where you are getting stuck. [This link](http://stackoverflow.com/help/how-to-ask) gives a more detailed outline of asking questions. – wwkudu Oct 05 '15 at 05:13
1 Answers
1
OpenPGP is an encryption scheme, which uses encryption algorithms (you named AES, 3DES) and adds other stuff besides the encryption itself. So OpenPGP is wider, than AES.
Plain text is just a human-readable "form" of certain binary data, so you would have no problems encrypting the plain text. The question is what you want to get as a result. OpenPGP would give you the binary data, or, when so-called Armoring is enabled, you will get the data in text format as well.

Eugene Mayevski 'Callback
- 45,135
- 8
- 71
- 121
-
Hi @Eugene , So it can be used to encrypt plain text that store in variable in c# to encrypt? – jmvtrinidad Oct 06 '15 at 02:52
-
@janmvtrinidad Yes, of course. You would need to convert the Unicode string to the binary data in some encoding (say UTF8 or UTF16), then encrypt the resulting buffer. – Eugene Mayevski 'Callback Oct 06 '15 at 04:46
-
-
@janmvtrinidad our SecureBlackbox includes samples for OpenPGP operations, and we provide support via our forum. As for other pgp libraries, if any, - they have their own support rules and I don't know them or the code of their libraries. – Eugene Mayevski 'Callback Oct 07 '15 at 05:17
-