< Summary - Syki

Information
Class: Syki.Back.Auth.Managers.SsoEncryptionManager
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Auth/Managers/SsoEncryptionManager.cs
Tag: 56_26538939494
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 12
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
Encrypt(...)100%210%
Decrypt(...)100%210%

File(s)

/home/runner/work/syki/syki/Back/Auth/Managers/SsoEncryptionManager.cs

#LineLine coverage
 1using Microsoft.AspNetCore.DataProtection;
 2
 3namespace Syki.Back.Auth.Managers;
 4
 05public class SsoEncryptionManager(IDataProtectionProvider provider)
 6{
 07    private readonly IDataProtector _protector = provider.CreateProtector("SsoClientSecrets");
 8
 09    public string Encrypt(string plainText) => _protector.Protect(plainText);
 10
 011    public string Decrypt(string cipherText) => _protector.Unprotect(cipherText);
 12}