docs: document empty/whitespace passthrough behavior in ICryptoProvider
This commit is contained in:
@@ -9,13 +9,13 @@ public interface ICryptoProvider
|
|||||||
/// Encrypts the provided plain text.
|
/// Encrypts the provided plain text.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="plainText">The unencrypted string to be encrypted.</param>
|
/// <param name="plainText">The unencrypted string to be encrypted.</param>
|
||||||
/// <returns>The encrypted cipher text.</returns>
|
/// <returns>The encrypted cipher text. If <paramref name="plainText"/> is null, empty, or whitespace, it is returned unchanged.</returns>
|
||||||
string Encrypt(string plainText);
|
string Encrypt(string plainText);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Decrypts the provided cipher text.
|
/// Decrypts the provided cipher text.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="cipherText">The encrypted string to be decrypted.</param>
|
/// <param name="cipherText">The encrypted string to be decrypted.</param>
|
||||||
/// <returns>The decrypted plain text.</returns>
|
/// <returns>The decrypted plain text. If <paramref name="cipherText"/> is null, empty, or whitespace, it is returned unchanged.</returns>
|
||||||
string Decrypt(string cipherText);
|
string Decrypt(string cipherText);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user