fix(RSAFactory): Dateiname und seine Erweiterung aus der Methode DefaultRSAKeyNameFormatter entfernt

This commit is contained in:
Developer 02 2024-11-20 17:14:12 +01:00
parent 9c7319634a
commit f7193594b1

View File

@ -17,8 +17,6 @@ namespace DigitalData.Core.Security
public static readonly IEnumerable<string> KeyFileTags = new string[] { DefaultEncryptedPrivateKeyFileTag, DefaultPrivateKeyFileTag, DefaultPublicKeyFileTag };
public static readonly string PEMFileExtension = ".pem";
private static readonly Lazy<IEnumerable<string>> LazyLowerFileTags = new(() => KeyFileTags.Select(tag => tag.ToLower()));
public static readonly string DefaultRSAKeyNameSeparator = "-_-";
@ -59,9 +57,7 @@ namespace DigitalData.Core.Security
else
sb.Append(DefaultPublicKeyFileTag).Append(separator).Append(passwordVersion);
var rsaKey = sb.Append(PEMFileExtension).ToString();
return rsaKey;
return sb.ToString();
}
public int KeySizeInBits { get; init; } = 2048;