🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools
Article #932

Re: Password encryption/de-cryption

#932
From: Niels Ull Jacobsen
Date: Wed, 09 Aug 1995 08:52
35 lines
1991 bytes
shah@wg.com writes:


>Hi there !

>I am developing a windows 3.1 app.  This app needs to authenticate a user 
>login by the user name and his/her password.  I need to store this password in 
>some sort of a format in some sort of a file (maybe an ini file).  But first I 
>need to encrypt this password and later on de-crypt to check against the 
>entered password (or maybe there is a better way - I just don't know yet).  

The best way to do this as to use a one-way encryption and only store
the encrypted password. When the user enters the new password, encrypt
that in the same way and compare with the original encrypted password.
In this way, noone can get the original password even if they have
access to the encrypted version.

A good place to start the encryption is to use a CRC 32, combined with
some other methods. The source code for this should be available in
several places. Check the FAQ's of comp.lang.c++ and sci.crypt.

>Could any of you please point me in a better way or point me to some known 
>used technique for this procedure ?

>I would much appreciate your help.

>Thanks
>Ajay Shah
>(ashah@eceyv.ncsu.edu)
>(shah@wg.com)


-- 
   Niels Ull Jacobsen, Dep. of CS, U of Copenhagen (null@diku.dk)
   Roenne Alle 3 st.th, 2860 Soeborg, Denmark, tel. +45 39 66 39 86
Technical Details
Message-ID: <409t0n$45p@odin.diku.dk>
Path: arc1-ca.pugleaf.net!diku.dk!null
References: <NEWTNews.807898837.21140.shah@shah.wg.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!diku.dk!null
From: null@diku.dk (Niels Ull Jacobsen)
Newsgroups: comp.os.ms-windows.programmer.tools,comp.os.ms-windows.programmer.networks,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.controls,comp.os.ms-windows.apps.utilities,comp.os.ms-windows.apps.misc,comp.os.ms-windows.apps.comm,comp.lang.c++
Subject: Re: Password encryption/de-cryption
Date: 9 Aug 1995 08:52:39 GMT
Organization: Department of Computer Science, U of Copenhagen
Sender: null@tyr.diku.dk
Message-ID: <409t0n$45p@odin.diku.dk>
References: <NEWTNews.807898837.21140.shah@shah.wg.com>
NNTP-Posting-Host: odin.diku.dk
X-Newsreader: NN version 6.5.0 #13