enchive | Encrypted personal archives | Encryption library
kandi X-RAY | enchive Summary
kandi X-RAY | enchive Summary
Enchive is a tool to encrypt files to yourself for long-term archival. It's a focused, simple alternative to more complex solutions such as GnuPG or encrypted filesystems. Enchive has no external dependencies and is trivial to build for local use. Portability is emphasized over performance. Supported platforms: Linux, BSD, macOS, Windows. The name is a portmanteau of "encrypt" and "archive," pronounced en'kīv. Files are secured with ChaCha20, Curve25519, and HMAC-SHA256.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of enchive
enchive Key Features
enchive Examples and Code Snippets
Community Discussions
Trending Discussions on enchive
QUESTION
On windows, I am using CryptGenRandom
API in C (I thought it would be equivalent to /dev/random
or /dev/urandom
on Linux). To confirm it, I made random files using these with CryptGenRandom
on Windows and read from /dev/urandom
on Linux, and analyze the result using ent
.
The code sample I used to generate the random file using CryptGenRandom
(originally from here):
ANSWER
Answered 2018-Jun-21 at 02:23
FILE *tfile = fopen("random_file", "w");
You are opening the file in text mode, and you write each character about 4000 times each. Including the '\r'
and '\n'
characters.
Each time you write '\n'
, the program inserts an extra '\r'
, so there are about 8000 '\r'
characters whose ASCII value is 13
In Windows, you should open the file in binary mode fopen("random_file", "wb")
for non-text files.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install enchive
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page