diff --git a/DigitalData.Core.Security/Config/AsymCryptParams.cs b/DigitalData.Core.Security/Config/AsymCryptParams.cs
index 13b658b..c4ef697 100644
--- a/DigitalData.Core.Security/Config/AsymCryptParams.cs
+++ b/DigitalData.Core.Security/Config/AsymCryptParams.cs
@@ -36,13 +36,28 @@ namespace DigitalData.Core.Security.Config
///
public string KeyNameSeparator { get; init; } = ":";
+ ///
+ ///This is the subtext of the pem file name. For the file to be automatically renewed, the name must be assigned to change periodically. For example, by default MM/2 will be refreshed every 2 months.
+ ///
+ /// - is used when converting to tag.
+ ///
+ /// - If the format contains the "//" symbol, the method divides the numeric value derived from the left side of the format
+ /// by the numeric value of the right side of the format string. For instance:
+ ///
+ /// - If the date is 02.03.2024 and the format is "MM//2", it extracts the month (02), divides it by 2 (resulting in 1),
+ /// and returns "1".
+ ///
+ /// - If the format does not contain "//", the method uses the default format.
+ ///
+ /// This method provides a way to format the date based on typical or customized rules, including mathematical operations like division.
+ ///
+ public string DateTagFormat { get; init; } = "MM//2";
+
public IEnumerable Decryptors { get; init; } = new List();
public RSADecryptor? Vault { get; init; }
- public AsymCryptParams()
- {
- AfterCreate += () =>
+ public AsymCryptParams() => AfterCreate += () =>
{
// Create root folder if it does not exist
if (!Directory.Exists(PemDirectory))
@@ -53,7 +68,7 @@ namespace DigitalData.Core.Security.Config
// set default path
if (decryptor.IsPemNull)
{
- var file_name_params = new List