finish initial support for rc4 encryption with blank user password

This commit is contained in:
Eliot Jones
2019-05-06 15:41:29 +01:00
parent 27928cd3a3
commit bad57763a1
15 changed files with 166 additions and 125 deletions

View File

@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Encryption
{
using System.Collections.Generic;
using Tokens;
internal class NoOpEncryptionHandler : IEncryptionHandler
@@ -11,9 +10,9 @@
{
}
public IReadOnlyList<byte> Decrypt(StreamToken stream)
public IToken Decrypt(IndirectReference reference, IToken token)
{
return stream.Data;
return token;
}
}
}