This is an automated email from the ASF dual-hosted git repository.

pjfanning pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 1f9b4461c0 Update encryption.xml
1f9b4461c0 is described below

commit 1f9b4461c05417365d51a95b6cae7391140a8c24
Author: PJ Fanning <[email protected]>
AuthorDate: Fri Jun 5 12:22:20 2026 +0100

    Update encryption.xml
---
 src/documentation/content/xdocs/encryption.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/documentation/content/xdocs/encryption.xml 
b/src/documentation/content/xdocs/encryption.xml
index 21a9e9130a..5ca7006e70 100644
--- a/src/documentation/content/xdocs/encryption.xml
+++ b/src/documentation/content/xdocs/encryption.xml
@@ -141,6 +141,8 @@
         <section>
             <title>XOR/RC4 decryption for xls</title>
             <source><![CDATA[
+                // set password before opening the file - note that this a 
ThreadLocal and needs to be
+                // reset to null after text extraction
                 Biff8EncryptionKey.setCurrentUserPassword("pass");
                 POIFSFileSystem fs = new POIFSFileSystem(new File("file.xls"), 
true);
                 HSSFWorkbook hwb = new HSSFWorkbook(fs.getRoot(), true);
@@ -151,6 +153,8 @@
         <section>
             <title>RC4 CryptoApi support ppt - decryption</title>
             <source><![CDATA[
+                // set password before opening the file - note that this a 
ThreadLocal and needs to be
+                // reset to null after text extraction
                 Biff8EncryptionKey.setCurrentUserPassword("pass");
                 POIFSFileSystem fs = new POIFSFileSystem(new File("file.ppt"), 
true);
                 HSLFSlideShow hss = new HSLFSlideShow(fs);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to