PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: Password Encryption
Date: Dec 3 2003 6:34PM

On Tue, 2003-12-02 at 01:47, Henson, David A [IT] wrote:
> Hi Michael,
> 
> Sorry to mail you directly, we have a requirement to set password encryption
> in sybperl - but, unfortunately, some of our older applications are still
> using DBLib. I am under the impression from this old posting that
> DBSETLENCRYPT has not been implemented:
> 
> 	http://www.peppler.org/archive/sybperl-l/2002/6/7139.html
> 
> Would you kindly let me know if this has been done since this posting, or if
> you have any plans to.

I didn't really have any plans to add it, but it's pretty trivial:

int
DBSETLENCRYPT(value)
	int value
  CODE:
{
    RETVAL = DBSETLENCRYP(login, value);
}
OUTPUT:
RETVAL

which you can add to DBlib.xs and rebuild.

You'll need to call this before requesting a new connection, of course.

Michael
-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler@peppler.org                 http://www.mbay.net/~mpeppler
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or 
long term contract positions - http://www.mbay.net/~mpeppler/resume.html