From owner-freebsd-questions Mon Dec 11 12:20:20 2000 From owner-freebsd-questions@FreeBSD.ORG Mon Dec 11 12:20:18 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id 05E0B37B400 for ; Mon, 11 Dec 2000 12:20:17 -0800 (PST) Received: from jonc.itouch (jonc.itouch [192.168.2.21]) by itouch.co.nz (8.11.1/8.11.1) with ESMTP id eBBKK1376543; Tue, 12 Dec 2000 09:20:01 +1300 (NZDT) (envelope-from jonc@itouch.co.nz) Received: (from jonc@localhost) by jonc.itouch (8.11.1/8.11.1) id eBBKK1d18132; Tue, 12 Dec 2000 09:20:01 +1300 (NZDT) (envelope-from jonc) Date: Tue, 12 Dec 2000 09:20:01 +1300 From: Jonathan Chen To: Marc W Cc: freebsd-questions@FreeBSD.ORG Subject: Re: encrypting strings in C Message-ID: <20001212092001.A17968@jonc.itouch> References: <200012112016.MAA25998@akira.lanfear.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200012112016.MAA25998@akira.lanfear.com>; from mwlist@akira.lanfear.com on Mon, Dec 11, 2000 at 12:16:15PM -0800 Sender: jonc@itouch.co.nz Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Dec 11, 2000 at 12:16:15PM -0800, 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 .... There's always crypt(3). crypt_get_format() and crypt_set_format() are FreeBSD specific, I think. -- Jonathan Chen ---------------------------------------------------------------------- Computers are like air conditioners. They stop working when you open Windows. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message