[Gambas-user] need some helping hand for crypting

Rolf Schmidt rolf.frogs at ...221...
Mon Jul 20 17:36:45 CEST 2009


 Hi Charlie
> >
> > > > no what I need is for gambas2, I have to store Passwords in an
> > > > XML-file, what means plain-text readable.
> > > > So I need a crypting/uncrypting logic .
> > > > I put my PW "TOPSECRET" to store
> > > > 	Print crypting("TOPSECRET")
> > > >
> > > > 	>2sgbtf&&
> > > >
> > > > and get it back by
> > > > 	Print uncrypting("2sgbtf&&")
> > > >
> > > > 	>TOPSECRET
> > > >
> > > > The uncrypted password is used for a database login.
> >
> > Check, if the database is able to handle md5-sum based passwords for
> > login - PostgreSQL can,  perhaps mySQL and other DBMS's too.
> > Then you can use the md5 sum of the password written in you xml file
> > directly for the login without "decrypt".

> thanks,
> but that way, it is like an plain text password,
> ONE can login with.

Not realy, because the given password will be converted to a md5-sum, which 
then is the md5 sum of a md5 sum - so login is not possible.

So it is with PostgreSQL.

By Rolf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20090720/8d40307c/attachment.sig>


More information about the User mailing list