473,778 Members | 5,590 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

storing password for e-mail app

I want to create e-mail app, and store user password
localy in a file. So when user starts app, he can check
e-mail without having to enter pass manually.
How do I do that?

I want to distribute source of the app, so think about that too.

Jul 23 '05 #1
6 1561

zi**@lova.every 1.net wrote:
I want to create e-mail app, and store user password
localy in a file. So when user starts app, he can check
e-mail without having to enter pass manually.
How do I do that?
You need to open the password file, read the password, and send the
password to the server.

You can learn how to do this by learning about input file streams:

http://www.cplusplus.com/ref/iostream/ifstream/

But I would recommend getting a book.

I want to distribute source of the app, so think about that too.

<offtopic> Look at www.sourceforge.net </offtopic>
Hope this helps,
-shez-

Jul 23 '05 #2
zi**@lova.every 1.net wrote:
I want to create e-mail app, and store user password
localy in a file. So when user starts app, he can check
e-mail without having to enter pass manually.
How do I do that?


File access can be done using the iostream class, in particular search
for documents about ifstream. Note that you should encrypt the password
before putting it into a regular file. Otherwise i wouldn't want to use
your mail app. ;)

Regards,

Karsten
Jul 23 '05 #3
Karsten Baumgarten wrote:
File access can be done using the iostream class, in particular search
for documents about ifstream. Note that you should encrypt the password
before putting it into a regular file. Otherwise i wouldn't want to use
your mail app. ;)

Not having something against such an encryption, however I do not think
that it is a mandatory approach.
Against what such an encryption would protect?


--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #4
Ioannis Vranos wrote:
Karsten Baumgarten wrote:
File access can be done using the iostream class, in particular search
for documents about ifstream. Note that you should encrypt the
password before putting it into a regular file. Otherwise i wouldn't
want to use your mail app. ;)


Not having something against such an encryption, however I do not think
that it is a mandatory approach.
Against what such an encryption would protect?


People looking for plain text password files on your computer?
Jul 23 '05 #5
What I meant was:

How do I encode password, if I also want to distribute the source of
program?
Anyone can see source and decrypt pass?

Jul 23 '05 #6
zi**@lova.every 1.net wrote:
What I meant was:

How do I encode password, if I also want to distribute the source of
program?
Anyone can see source and decrypt pass?


You can use some (public key?) encryption algorithm (a library perhaps),
with which you can generate a random encryption key during installation,
first run or something.


--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6976
by: Bob | last post by:
Hi, I have a website in a Linux/Apache shared hosting environment and have been given access to the MySQL server running on the same machine. To access this database from PHP, I have to call mysql_connect(host, user, password) where the password is hardcoded into my PHP source file in clear text. I see two security problems with this:
2
1416
by: Kit Truong | last post by:
Hello, When I'm creating database driven asp applications, I store my constants, including my connection string to the database within an asp file called constants.asp. All constants are stored inside asp coding <% ... %> so people can't save the data through the web. I've been told this is an insecure way of storing the connect string becuase my connect string would also store the username and password to connect to the db.
3
2004
by: Gordon Knote | last post by:
Hi In my application I need to store a password the user enters (unfortunately not a hash of it, but the password as a plaintext string). Is there any secure way to do so (by Visual Basic .NET) Thanks Gordon
0
2394
by: ericellsworth | last post by:
Hi all, I'm wondering if there's a way to remove the password Access (2003) has stored for an ODBC linked table without quitting and reopening the application. I have a set of linked tables which I update with a user's password on login using tdf.Connect, thereby keeping them from having to use the linked table manager or see the ODBC connection dialog. When a user logs out, I set the connect string back to a generic connect string...
5
1188
by: - Steve - | last post by:
I have a website that uses forms based authentication. In the logon.aspx page a user enters a username and password. It is then authenticated against Active Directory. After that point on any page in the directory I can access the username using HttpContext.Current.User.Identity.Name, but I can't figure out how to access the password in plain text. Back at the logon.aspx page if I could store the password that is submitted the...
2
1634
by: Steve Lloyd | last post by:
Hi, I am looking for a bit of advice. I have an application that can be installed on users home PC's that authenticates to a windows domain server over a VPN. Once authenticated against the Active directory I need to reuse the inputted information over and over and again for various database tasks (using windows authtication). What is the best and most secure way to store the username and password for re-use? I have considered...
3
1319
by: Kevin L | last post by:
I want to store database credentials in either the registry or a file. What is the easiest way to encrypt this information?
5
2868
by: per9000 | last post by:
Hi all, I want to create an encryption program and started thinking about not storing sensitive information in the memory since I guess someone might steal my computer an scan my memory. So I wrote this method for getting a password from the console and converting it to an array of bytes for later use in the encryption algorithm. The weak point as I see it is the storage of the password - it will be
2
2006
by: Mythran | last post by:
We followed an example found on MSDN to create an encrypted FormsAuthenticationTicket and storing the ticket in a cookie. Is this the "correct" way to store the authentication ticket? We are attempting to create a web service from the web application and our goal is to have the user login to the web application and then, using the same credentials and/or authentication objects, access the web services to retrieve our data from other...
13
12689
by: =?Utf-8?B?QWRhbSBT?= | last post by:
I would like to know the best way to store credentials in a c# application. I am writing some administrative tools and will need to store username and password information for a domain account with elevated privileges. While I am sure this is not a "best practice" I have not come up with a way around this as not all users of the app will have the permissions on their accounts. Any advice on is most appreciated. Thanks --
0
9629
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10298
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9923
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8957
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6723
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5500
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3627
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2865
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.