< Summary - Estud

Information
Class: Estud.Back.Auth.Managers.SsoEncryptionManager
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Auth/Managers/SsoEncryptionManager.cs
Tag: 114_29044117136
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 12
Line coverage: 100%
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%11100%
Encrypt(...)100%11100%
Decrypt(...)100%11100%

File(s)

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

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