From 1e9915d2ce9baa31506a8c04929d6e44a29f106b Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Mon, 10 Jun 2024 23:19:04 -0500 Subject: Initial Commit --- src/encryption.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/encryption.h (limited to 'src/encryption.h') 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 @@ +#ifndef __SLOTS__ENCRYPTION_H__176771896719387 +#define __SLOTS__ENCRYPTION_H__176771896719387 + +#include + +/* 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 */ +size_t passenc(int fd, const char *passphrase); + +#endif \ No newline at end of file -- cgit v1.2.3