2022-10-27 11:27:13 -07:00
|
|
|
|
namespace NDecrypt.Core
|
2019-04-11 03:01:13 -07:00
|
|
|
|
{
|
2026-03-22 00:41:08 -04:00
|
|
|
|
public interface ICartProcessor
|
2019-04-11 03:01:13 -07:00
|
|
|
|
{
|
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);
|
2025-02-19 15:36:36 -05:00
|
|
|
|
|
|
|
|
|
|
/// <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);
|
2019-04-11 03:01:13 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|