diff options
| author | @syxhe <https://t.me/syxhe> | 2024-06-10 23:19:04 -0500 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2024-06-10 23:19:04 -0500 |
| commit | 1e9915d2ce9baa31506a8c04929d6e44a29f106b (patch) | |
| tree | ce659689a424f63481151cf726fb4f34491c9bc0 /src/encryption.h | |
Initial Commit
Diffstat (limited to 'src/encryption.h')
| -rw-r--r-- | src/encryption.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/encryption.h b/src/encryption.h new file mode 100644 index 0000000..eccb6b9 --- /dev/null +++ b/src/encryption.h | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | #ifndef __SLOTS__ENCRYPTION_H__176771896719387 | ||
| 2 | #define __SLOTS__ENCRYPTION_H__176771896719387 | ||
| 3 | |||
| 4 | #include <stddef.h> | ||
| 5 | |||
| 6 | /* Overwrite an open file with "encrypted" data by XOR'ing each byte with a character from PASSPHRASE. Returns number of bytes overwritten, and -1 on error */ | ||
| 7 | size_t passenc(int fd, const char *passphrase); | ||
| 8 | |||
| 9 | #endif \ No newline at end of file | ||
