Results 1 to 6 of 6

Thread: Passwording My program Help!!!

  1. #1
    Join Date
    Mar 2008
    Posts
    482
    Rep Power
    0

    Exclamation Passwording My program Help!!!

    I have done a project for programming class but i am to put a password in it can someone give me an idea of how to place a password in it?
    contact info:
    Cell: 842-1140
    or PM me at anytime

  2. #2
    Join Date
    Aug 2002
    Posts
    6,223
    Rep Power
    0

    Default

    Where would the password be stored, in a text file, database or hard coded?
    .
    PC - Ubuntu 15.04 64bit Desktop
    HP Pav G60-236US 3GB RAM Laptop, Ubuntu 15.04 64bit and Win7 Home

    "So Daddy, how come you telling me stealing not right when YOU copying DVDs? How come? How Come?"


    RIP Ramesh ...

  3. #3
    Join Date
    Mar 2008
    Posts
    482
    Rep Power
    0

    Default

    it would be stored in a text file bossy
    contact info:
    Cell: 842-1140
    or PM me at anytime

  4. #4
    Join Date
    Oct 2005
    Posts
    745
    Rep Power
    0

    Default

    Telling us what language it was done in would be a start. Will the password be encrypted?
    3.14159265358979323846264338327950288
    4197169399375105820974944592307816406
    28620899862803482534211706798 pi 101

  5. #5
    Join Date
    Feb 2006
    Posts
    4,242
    Rep Power
    0

    Default

    Quote Originally Posted by recursion View Post
    Telling us what language it was done in would be a start. Will the password be encrypted?
    so true, it seems to be either 3 c,c++ or c#, but he need to state which.
    |--- www.RealJamaicaEstate.com ™ ---|
    Invest small = small returns [micro enterprise] | Invest Big = returns Big [macro enterprise]
    --- www.fashionsJAMAICA.com ™ -|- www.ChampsJamaica.com

  6. #6
    Join Date
    Dec 2005
    Posts
    1,951
    Rep Power
    0

    Default

    This wont be neccessary seeing that its months ago, but ill answer anyway.The easiest way to do it is in the coding:
    When the software is opened it will as for a password:
    then do the following:
    //********************************************
    C++
    cout<<"Enter PassWord to Start Program\n";
    cin>>pass;
    if(pass=="your_choosen_pass")
    {
    //do something
    }
    else
    return 0;
    //********************************************
    C#
    Console.WriteLine("Enter PassWord");
    pass=Console.ReadLine();
    if(pass=="your_choosen_pass")
    {
    //do something
    }
    else
    return 0;
    //********************************************
    Last edited by mobile_fan_2k5; May 16, 2010 at 04:39 PM.
    Pc= Hp dv6t

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •