From owner-freebsd-questions Mon Dec 11 12:36: 8 2000 From owner-freebsd-questions@FreeBSD.ORG Mon Dec 11 12:36:04 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (Postfix) with ESMTP id 98E3337B402 for ; Mon, 11 Dec 2000 12:36:02 -0800 (PST) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.9.3/8.9.3) with ESMTP id RAA51783; Mon, 11 Dec 2000 17:36:07 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Mon, 11 Dec 2000 17:36:07 -0300 (ART) From: Fernando Gleiser To: Marc W Cc: freebsd-questions@FreeBSD.ORG Subject: Re: encrypting strings in C In-Reply-To: <200012112016.MAA25998@akira.lanfear.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 11 Dec 2000, Marc W wrote: > > Hello! > > Are there any standard library routines for encrypting strings? In one > of the programs I'm writing, I've got a string that I want to write out to > a file, but it is sensitive information. Apart from setting the file > permissions to try and restrict access to it, is there some library routine > I can call to enrypt it in some way? Something that worked across all > UN*X platforms would be preferred .... Take a look at openssl's libcrypto. It has functions to encrypt using several algorithms in every mode (CBD, ECB, etc) > > Thanks! > > marc. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message