mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
19 lines
444 B
C#
19 lines
444 B
C#
|
|
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;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|