DocSpace-buildtools/common/ASC.Data.Storage/Encryption/FakeCrypt.cs

29 lines
576 B
C#
Raw Normal View History

2022-02-10 11:24:16 +00:00
namespace ASC.Data.Storage.Encryption;
2020-12-28 13:22:08 +00:00
2022-02-10 11:24:16 +00:00
public class FakeCrypt : ICrypt
{
public byte Version => 1;
2020-12-28 13:22:08 +00:00
2022-02-10 11:24:16 +00:00
public void EncryptFile(string filePath)
{
return;
}
2020-12-28 13:22:08 +00:00
2022-02-10 11:24:16 +00:00
public void DecryptFile(string filePath)
{
return;
}
2020-12-28 13:22:08 +00:00
2022-02-10 11:24:16 +00:00
public Stream GetReadStream(string filePath)
{
return File.OpenRead(filePath);
}
2020-12-28 13:22:08 +00:00
2022-02-10 11:24:16 +00:00
public long GetFileSize(string filePath)
{
return new FileInfo(filePath).Length;
2020-12-28 13:22:08 +00:00
}
2022-02-10 11:24:16 +00:00
public void Init(string storageName, EncryptionSettings encryptionSettings) { }
2020-12-28 13:22:08 +00:00
}