CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Deploying Windows Server 2008 with System Center
  • Remote Desktop Protocol Performance Improvements in Windows Server 2008 R2 and Windows 7
  • The Microsoft Dynamics CRM Security Model
  • SQL Server Modeling Services with Microsoft Visual Studio 2010 Beta 2

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ Programming
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Visual C++ Programming Ask questions about Windows programming with Visual C++ and help others by answering their questions.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old November 3rd, 2009, 01:49 AM
    galapogos galapogos is offline
    Member
     
    Join Date: Feb 2005
    Posts: 250
    galapogos is an unknown quantity at this point (<10)
    Storing non volatile flag securely

    Hi,

    I have an application that requires user authentication either via a password, or via a smart card authentication(PIN + smart card) before the application can be accessed.

    I'm wondering how I can switch between these 2 modes. I supposed I'd need some flag to keep track of the mode, and it needs to be non-volatile so it will have to be written to the disk, but if I just write it raw in the clear, the user can easily overwrite it to override the mode.
    Reply With Quote
      #2    
    Old November 3rd, 2009, 04:35 AM
    olivthill2 olivthill2 is offline
    Member
     
    Join Date: Apr 2009
    Posts: 291
    olivthill2 is a jewel in the rough (200+) olivthill2 is a jewel in the rough (200+) olivthill2 is a jewel in the rough (200+)
    Re: Storing non volatile flag securely

    You can encrypt your data before writing them in a file, and decrypt them when you read them.

    Or you can avoid using a file, if you have a hidden read-only field that you pass from the client to the server back and forth in each new page as long as the user is logged on.

    If you write applications for internet, this is the same as having a cookie or as using a session.
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ Programming


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 01:25 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.