Saving Input

This is a discussion on Saving Input within the C++ Programming forums, part of the General Programming Boards category; Hi, I have a written a small program and I'd like it to be so that the user can create ...

  1. #1
    Registered User
    Join Date
    Mar 2013
    Location
    England
    Posts
    9

    Saving Input

    Hi,
    I have a written a small program and I'd like it to be so that the user can create
    a password and it will be the same next time you run the program. Sorry if this is
    really simple but I'm quite new to this. Thank you for any advice or help.
    Joe
    Last edited by Joewbarber; 03-21-2013 at 11:50 AM. Reason: Text on one line

  2. #2
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,523
    The simplest way would be to save the password in a file.
    (Read up on File IO in C++)

    Once you have done that, you'd want to hash the password before saving it..so that it is not possible to read it by opening a text file.
    Manasij Mukherjee | gcc-4.9.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



Popular pages Recent additions subscribe to a feed

Similar Threads

  1. saving entire input into 1 string?
    By rodrigorules in forum C++ Programming
    Replies: 3
    Last Post: 04-09-2010, 03:44 PM
  2. saving
    By Saimadhav in forum C++ Programming
    Replies: 7
    Last Post: 09-20-2008, 10:27 AM
  3. Saving data input in C
    By thebestdrummer1 in forum C Programming
    Replies: 6
    Last Post: 02-06-2008, 05:05 AM
  4. Saving?!
    By kjmagic in forum C++ Programming
    Replies: 6
    Last Post: 12-19-2003, 11:30 AM
  5. Saving
    By ZachariahLee in forum C++ Programming
    Replies: 4
    Last Post: 02-06-2003, 08:05 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21