Prepare the document for encryption.
@param doc The document that will be encrypted.
@throws CryptographyException If there is an error while preparing.
@throws IOException If there is an error with the document.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.