Package org.apache.poi.hssf.record.crypto

Examples of org.apache.poi.hssf.record.crypto.Biff8RC4Key


      }

      Biff8EncryptionKey key;
      if (fpr.getRc4KeyData() != null) {
          Rc4KeyData rc4 = fpr.getRc4KeyData();
          Biff8RC4Key rc4key = Biff8RC4Key.create(userPassword, rc4.getSalt());
          key = rc4key;
          if (!rc4key.validate(rc4.getEncryptedVerifier(), rc4.getEncryptedVerifierHash())) {
                  throw new EncryptedDocumentException(
                        (Decryptor.DEFAULT_PASSWORD.equals(userPassword) ? "Default" : "Supplied")
                        + " password is invalid for salt/verifier/verifierHash");
          }
      } else if (fpr.getXorKeyData() != null) {
View Full Code Here

TOP

Related Classes of org.apache.poi.hssf.record.crypto.Biff8RC4Key

Copyright © 2018 www.massapicom. All rights reserved.
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.