🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.crypt
Article #3173

Re: Encryption using C++

#3173
From: J. Kanze
Date: Tue, 29 Aug 1995 10:46
28 lines
1997 bytes
Bryan G. Olson; CMSC (G) (olson@umbc.edu) wrote:
|> Ibrahim H Abed (ihabed@uncc.edu) wrote:
|> : I was wondering does encryption with C++ offer some advantages/dis-
|> : advantages over C?  Would the object-oriented approach to programming
|> : in C++ help in some of the complicated operations involved in encryption
|> : methods such as DES and other complicated schemes?

|> The actual bit-grinding encryption/decryption algorithms would be best
|> implemented the same way in C++ as in C.  The advantages of using C++
|> will be in the structuring of an encryption library.

|> Good C++ classes for encryption and decryption hide a lot of the
|> mundane data-handling work from the user.  The same interface can
|> support many interchangeable algorithms.  The class can keep track of
|> keys, chained values and partially computed blocks without the user
|> having to constantly pass these in and out.  The class may handle
|> buffering internally and provide a state-driven interface, so when
|> encrypting the user can pass in plaintext strings of any size as
|> they're available and read out ciphertext as it's needed.

Another interesting aspect: the encryption/decryption can take place in
a streambuf, transparently to the rest of the program (which reads and
writes the data as ususal).
-- 
James Kanze           (+33) 88 14 49 00          email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs Bourgeois, 67000 Strasbourg, France
Conseils en informatique industrielle--
                             --Beratung in industrieller Datenverarbeitung
Technical Details
Message-ID: <41ur5i$187@gabi.gabi-soft.fr>
Path: arc1-ca.pugleaf.net!gabi-soft.fr!not-for-mail
References: <41i8s0$oeb@news.uncc.edu> <41iv4s$1v7@news.umbc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!gabi-soft.fr!not-for-mail
From: kanze@gabi-soft.fr (J. Kanze)
Newsgroups: sci.crypt,comp.lang.c++
Subject: Re: Encryption using C++
Date: 29 Aug 1995 12:46:10 +0200
Organization: GABI Software, Sarl.
Message-ID: <41ur5i$187@gabi.gabi-soft.fr>
References: <41i8s0$oeb@news.uncc.edu> <41iv4s$1v7@news.umbc.edu>
NNTP-Posting-Host: gabi.gabi-soft.fr
X-Newsreader: TIN [version 1.2 PL2]