diff --git a/NEW/src/JdeScoping.Core/Interfaces/IRsaKeyService.cs b/NEW/src/JdeScoping.Core/Interfaces/IRsaKeyService.cs new file mode 100644 index 0000000..ea34537 --- /dev/null +++ b/NEW/src/JdeScoping.Core/Interfaces/IRsaKeyService.cs @@ -0,0 +1,19 @@ +namespace JdeScoping.Core.Interfaces; + +/// +/// RSA key management for login encryption. +/// +public interface IRsaKeyService +{ + /// + /// Gets the server's public key in PEM format. + /// + string GetPublicKeyPem(); + + /// + /// Decrypts RSA-OAEP encrypted data. + /// + /// Encrypted bytes + /// Decrypted plaintext bytes + byte[] Decrypt(byte[] ciphertext); +}