Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site brl-vgr.ARPA Path: utzoo!watmath!clyde!floyd!harpo!seismo!brl-vgr!gwyn From: gwyn@brl-vgr.ARPA (Doug Gwyn ) Newsgroups: net.lang.c Subject: Re: Data Encryption Techniques Message-ID: <165@brl-vgr.ARPA> Date: Thu, 12-Apr-84 16:16:14 EST Article-I.D.: brl-vgr.165 Posted: Thu Apr 12 16:16:14 1984 Date-Received: Fri, 13-Apr-84 20:51:19 EST References: <503@reed.UUCP> Organization: Ballistics Research Lab Lines: 19 (You should probably also address questions like this to net.crypt.) Vigenere encryption of a long file with a short key is pretty easy to break. A Kasiski analysis will show the key length, then each of the monalphabetic encryptions can be attacked by frequency analysis. The "l*" in your algorithm may delay more advanced attacks if the analyst does not know the algorithm you used, but he would almost certainly be able to break the scheme with a modest amount of work. If the encryption algorithm is known to or discovered by the analyst, then there are some more powerful techniques that make an automatic cryptanalytic attack possible. The real question is, are you trying to hide your sources from users or from dedicated cryptanalysts? If the former, several simple methods are sufficient; if the latter, no known method is perfectly safe (excepting those that involve secure storage of a large amount of key). One simplification you could make would be to use exclusive- or of the key bits and the text bits; this is easy in C and faster than the modulo method you used.