mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
WIP Clean Architecture
Windows 8.1 App Uses keepasslib v2.44 (temporarily)
This commit is contained in:
22
ModernKeePass.Application.12/Services/CryptographyService.cs
Normal file
22
ModernKeePass.Application.12/Services/CryptographyService.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
using ModernKeePass.Application.Common.Interfaces;
|
||||
using ModernKeePass.Domain.Entities;
|
||||
using ModernKeePass.Domain.Interfaces;
|
||||
|
||||
namespace ModernKeePass.Application.Services
|
||||
{
|
||||
public class CryptographyService : ICryptographyService
|
||||
{
|
||||
private readonly ICryptographyClient _cryptographyClient;
|
||||
public IEnumerable<Entity> Ciphers => _cryptographyClient.Ciphers;
|
||||
|
||||
public IEnumerable<Entity> KeyDerivations => _cryptographyClient.KeyDerivations;
|
||||
|
||||
public IEnumerable<string> CompressionAlgorithms => _cryptographyClient.CompressionAlgorithms;
|
||||
|
||||
public CryptographyService(ICryptographyClient cryptographyClient)
|
||||
{
|
||||
_cryptographyClient = cryptographyClient;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user