Hello,
I'm trying to open a password protected Excel 2013 file with the Decryptor. It seems to support only SHA1 but new Excel files are SHA512.
I tried to update but not so easy :)
Is it normal the Crypt namespace is not anymore in the NuGet package ?
I'm trying to open a password protected Excel 2013 file with the Decryptor. It seems to support only SHA1 but new Excel files are SHA512.
I tried to update but not so easy :)
Is it normal the Crypt namespace is not anymore in the NuGet package ?
NPOI.POIFS.FileSystem.POIFSFileSystem nfs =
new NPOI.POIFS.FileSystem.POIFSFileSystem(
new FileStream(file, FileMode.Open, FileAccess.ReadWrite));
string password = "123";
EncryptionInfo info = new EncryptionInfo(nfs);
Decryptor dc = Decryptor.GetInstance(info);
bool b = dc.VerifyPassword(password);