org.apache.poi.hssf.record.crypto
Class Biff8RC4Key
- java.lang.Object
-
- org.apache.poi.hssf.record.crypto.Biff8EncryptionKey
-
- org.apache.poi.hssf.record.crypto.Biff8RC4Key
-
public class Biff8RC4Key extends Biff8EncryptionKey
-
-
Field Summary
Fields Modifier and Type Field and Description static intKEY_DIGEST_LENGTH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static Biff8RC4Keycreate(java.lang.String password, byte[] salt)Create using the default password and a specified docIdbooleanvalidate(byte[] verifier, byte[] verifierHash)-
Methods inherited from class org.apache.poi.hssf.record.crypto.Biff8EncryptionKey
create, getCurrentUserPassword, setCurrentUserPassword
-
-
-
-
Field Detail
-
KEY_DIGEST_LENGTH
public static final int KEY_DIGEST_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static Biff8RC4Key create(java.lang.String password, byte[] salt)
Create using the default password and a specified docId- Parameters:
salt- 16 bytes
-
validate
public boolean validate(byte[] verifier, byte[] verifierHash)- Overrides:
validatein classBiff8EncryptionKey- Returns:
trueif the keyDigest is compatible with the specified saltData and saltHash
-
-
DataMelt 3.0 © DataMelt by jWork.ORG