Skip to content

Commit

Permalink
more of statics removed
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloDiazSSA committed Nov 30, 2023
1 parent 3906629 commit 34e4e7f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
14 changes: 9 additions & 5 deletions Controllers/CardController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,35 @@ public class CardController : ControllerBase
/// <summary>
/// Almacena el numero de tarjeta original
/// </summary>
public string A { get; set; } = string.Empty;
public string A { get; set; }
/// <summary>
/// Almacena el numero de tarjeta codificado
/// </summary>
public string AC { get; set; } = string.Empty;
public string AC { get; set; }
/// <summary>
/// Almacena el numero de tarjeta encriptado y codificado
/// </summary>
public byte[]? AE { get; set; }
/// <summary>
/// Almacena el numero de tarjeta codificado desencriptado
/// </summary>
public string B { get; set; } = string.Empty;
public string B { get; set; }
/// <summary>
/// Almacena el numero de tarjeta codificado
/// </summary>
public string BC { get; set; } = string.Empty;
public string BC { get; set; }

/// <summary>
/// Ctor
/// </summary>
/// <param name="config"></param>
public CardController(IConfiguration config)
{
_config = config;
_config = config;
A = string.Empty;
B = string.Empty;
BC = string.Empty;
AC = string.Empty;
}

/// <summary>
Expand Down
9 changes: 8 additions & 1 deletion Tools/Helpers/HelperCryptography.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ namespace Entregable2_PD.Tools.Helpers
/// <summary>
///
/// </summary>
public static class HelperCryptography
public class HelperCryptography
{
/// <summary>
///
/// </summary>
protected HelperCryptography()
{

}
/// <summary>
/// Funcion para generar salts random
/// </summary>
Expand Down
11 changes: 9 additions & 2 deletions Tools/Helpers/SanitizeString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,23 @@ namespace Entregable2_PD.Tools.Helpers
/// <summary>
///
/// </summary>
public static class SanitizeString
public class SanitizeString
{
/// <summary>
///
/// </summary>
protected SanitizeString()
{

}
/// <summary>
///
/// </summary>
/// <param name="text"></param>
/// <returns></returns>
public static string RemoveHtml(string text)
{
Regex removeHTMLtagsRegex = new Regex("<(?:\"[^\"]*\"['\"]*|'[^']*'['\"]*|[^'\">])+>", RegexOptions.None, TimeSpan.FromMilliseconds(100));
var removeHTMLtagsRegex = new Regex("<(?:\"[^\"]*\"['\"]*|'[^']*'['\"]*|[^'\">])+>", RegexOptions.None, TimeSpan.FromMilliseconds(100));
return removeHTMLtagsRegex.Replace(text, string.Empty);

}
Expand Down

0 comments on commit 34e4e7f

Please sign in to comment.