From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,1ceaaab464f2b817 X-Google-Thread: f7344,1ceaaab464f2b817 X-Google-Attributes: gidfa528,gidf7344,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Date: Mon, 21 Jan 2008 14:26:33 -0500 From: =?ISO-8859-1?Q?Arne_Vajh=F8j?= User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: comp.unix.tru64,comp.os.vms Subject: Re: encrypt / decrypt - Anything available for Tru64 ? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4794f1e3$0$90263$14726298@news.sunsite.dk> Organization: SunSITE.dk - Supporting Open source NNTP-Posting-Host: 72.192.23.157 X-Trace: news.sunsite.dk DXC=G82JM_PW6Vg2IM I find myself needing a generic file encrypt/decrypt utility for > some Tru64 sites that I support. What do others use for this sort > of requirement ? > > Ideally, it should contain similar functionality that the VMS > Encrypt and Decrypt commands provide: > > $ help encrypt > > ENCRYPT > > There are four ENCRYPT commands: > ENCRYPT Encrypts files. Before you enter > this command, create a key with the > ENCRYPT /CREATE_KEY command. > ENCRYPT /AUTHENTICATE Checks for changes to either plain > text or cipher text files (see > /AUTHENTICATE). > ENCRYPT /CREATE_KEY Defines a key to be used during > encryption (see /CREATE_KEY). > ENCRYPT /REMOVE_KEY Deletes a key definition from a key > storage table (see /REMOVE_KEY). > > Format for the ENCRYPT Command > > ENCRYPT input-file key-name [qualifiers] > > /DATA_ALGORITHM > > { DESCBC (default) } > /DATA_ALGORITHM= { AESmmmkkk } > { } > > Where mmm is the mode CBC, ECB, CFB, or OFB; and kkk is 128, > 192, or 256 bits. Cipher Block Chaining (CBC) and Electronic Code > Book (ECB) are 16-byte block modes, meaning blocks are padded to > 16 bytes if necessary during encryption. The padding is removed > during decruption. Cipher Feedback (CFB) and Output Feedback > (OFB) are 8-bit character stream mode emulation, useful in data > communications and where no padding is required. > > Note that /DATA_ALGORITM=AES is a shortcut for specifying AESCBC128. > > The data algorithm is used with the randomly generated key to > perform encryption of the file's data. When specifying an AES > algorithm, specify both /KEY and /DATA=AESmmmkkk qualifiers and > use an AES created key. > > Alternatively, has anyone built a generic encrypt/decrypt utility > using the routines supplied in CDSA (Common Data Security Architecture), > which is part of the Tru64 Security Subsystem (it's part of the base > operating system in VMS) ? The algorithms mentioned are very "standard" ones. I would spend 2 minutes searching for a utility already on the system and if unsuccessful then start coding. A Java version >= 1.4 or a C compiler with a cryptographic library should be relative easy. If you tell me what you have, then I would be happy to slam some code together. Arne