start adding support for reading encrypted documents

This commit is contained in:
Eliot Jones
2019-05-04 15:36:13 +01:00
parent b2a3ae7a49
commit be394f5bba
21 changed files with 534 additions and 66 deletions

View File

@@ -0,0 +1,19 @@
namespace UglyToad.PdfPig.Encryption
{
using System.Collections.Generic;
using Tokens;
internal class NoOpEncryptionHandler : IEncryptionHandler
{
public static NoOpEncryptionHandler Instance { get; } = new NoOpEncryptionHandler();
private NoOpEncryptionHandler()
{
}
public IReadOnlyList<byte> Decrypt(StreamToken stream)
{
return stream.Data;
}
}
}