Files
NDecrypt/NDecrypt.Core/ICartProcessor.cs

33 lines
1.5 KiB
C#
Raw Normal View History

namespace NDecrypt.Core
{
2026-03-22 00:41:08 -04:00
public interface ICartProcessor
{
2024-10-12 00:59:07 -04:00
/// <summary>
/// Attempts to encrypt an input file
/// </summary>
2025-09-06 18:04:24 -04:00
/// <param name="input">Name of the file to encrypt</param>
2025-09-06 18:09:54 -04:00
/// <param name="output">Optional name of the file to write to</param>
2024-10-12 01:32:32 -04:00
/// <param name="force">Indicates if the operation should be forced</param>
2024-10-12 00:59:07 -04:00
/// <returns>True if the file could be encrypted, false otherwise</returns>
2025-09-06 18:09:54 -04:00
/// <remarks>If an output filename is not provided, the input file will be overwritten</remarks>
2026-01-25 17:20:06 -05:00
public bool EncryptFile(string input, string? output, bool force);
2024-10-12 00:59:07 -04:00
/// <summary>
/// Attempts to decrypt an input file
/// </summary>
2025-09-06 18:04:24 -04:00
/// <param name="input">Name of the file to decrypt</param>
2025-09-06 18:09:54 -04:00
/// <param name="output">Optional name of the file to write to</param>
2024-10-12 01:32:32 -04:00
/// <param name="force">Indicates if the operation should be forced</param>
2024-10-12 00:59:07 -04:00
/// <returns>True if the file could be decrypted, false otherwise</returns>
2025-09-06 18:09:54 -04:00
/// <remarks>If an output filename is not provided, the input file will be overwritten</remarks>
2026-01-25 17:20:06 -05:00
public bool DecryptFile(string input, string? output, bool force);
/// <summary>
/// Attempts to get information on an input file
/// </summary>
/// <param name="filename">Name of the file get information on</param>
/// <returns>String representing the info, null on error</returns>
2026-01-25 17:20:06 -05:00
public string? GetInformation(string filename);
}
}