diff options
author | lloyd <[email protected]> | 2009-12-31 03:43:02 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-12-31 03:43:02 +0000 |
commit | 811fed1957f284456e1455032f729e74c4fed458 (patch) | |
tree | a0cfed4f7ff52149db0ff091f8670351fadeea29 /doc/examples/encrypt.cpp | |
parent | cf6319e4e663f4214a0f9e1509087a58a181910f (diff) |
Add copyright and license notes to pretty much every file that didn't have them,
including the examples and self-test code.
Most of these files had not copyright/license information at all; since a major
point of the examples is to allow users to copy and paste code that already
does something they want, an ambigious license is not good.
Diffstat (limited to 'doc/examples/encrypt.cpp')
-rw-r--r-- | doc/examples/encrypt.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/examples/encrypt.cpp b/doc/examples/encrypt.cpp index 348ee8d39..f903c2f24 100644 --- a/doc/examples/encrypt.cpp +++ b/doc/examples/encrypt.cpp @@ -1,4 +1,10 @@ /* +* (C) 2009 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ + +/* Encrypt a file using a block cipher in CBC mode. Compresses the plaintext with Zlib, MACs with HMAC(SHA-1). Stores the block cipher used in the file, so you don't have to specify it when decrypting. @@ -10,13 +16,8 @@ was compressed. Bonus points for supporting multiple compression schemes. Another flaw is that is stores the entire ciphertext in memory, so if the file you're encrypting is 1 Gb... you better have a lot of RAM. - -Based on the base64 example, of all things - -Written by Jack Lloyd ([email protected]) on August 5, 2002 - -This file is in the public domain */ + #include <fstream> #include <iostream> #include <string> |