473,378 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 1546

zi**@lova.every1.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.every1.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.every1.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
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...
2
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...
3
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) ...
0
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...
5
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...
2
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...
3
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
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...
2
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...
13
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.