filecrypt — OpenSSL-based file encryption, release 0.7.2

Almost four years after its initial inception and release, I have entirely rewritten the CLI invocation, streamlined the encryption secrets management, and created a self-contained executable. Once you have a private/public key pair, a file can be simply encrypted using: ./filecrypt.pyz -o my_file.enc /path/to/plain.txt and decrypted using: ./filecrypt.pyz¬† -o /path/to/plain.txt -d my_file.enc The –send option … More filecrypt — OpenSSL-based file encryption, release 0.7.2

Beware of C++11 `auto`

Here’s a puzzler for you: given the code below, what does the for loop print? using HandlersMap = std::map<std::string, std::function<std::string(const std::string&)>>; using MetaMap = std::map<std::string, HandlersMap>; void insert(MetaMap& meta, const std::string& key, const std::string& sub) { auto handlers = meta[key]; handlers[sub] = [=](const std::string& msg) { return “The response for ” + sub + ” … More Beware of C++11 `auto`