How do I sign / encrypt the text data (and not a file)?

PKCS#7 message signing and encryption classes work with binary data buffers and streams. You just pass the text data as a binary data buffer to the class or use MemoryStream (in .NET), TMemoryStream (in VCL) or to IStream interface implementation (in ActiveX) to keep the text data.

With PGP, you need to save the data to MemoryStream (in .NET), TMemoryStream (in VCL) or to IStream interface implementation (in ActiveX). Then pass the resulting stream as an input stream to PGP classes. Use another in-memory stream object to receive the resulting data.

Ready to get started?

Learn more about SecureBlackbox or download a free trial.

Download Now