Results 1 to 10 of 10

Thread: Password In Resource File!

  1. #1

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Question Password In Resource File!

    I want to save passwords in a Resource file so as to make it more secure. How do I go about it?

    Also can passwords be saved in a Manifest file so as to ensure that its highly secure i.e. there shouldn't be any way by which users can tamper with the password?

    I know that passwords can be saved in the Registry but I did like to avoid playing with the Registry.


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

  2. #2
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Re: Password In Resource File!

    I dont think you can as resource files are compiled by rc.exe then compiled again into the exe. Why not encrypt the password and save to a text file, like cookies do?

  3. #3

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Re: Password In Resource File!

    Anyone can easily delete the text file or even change the password, isn't it?

    Actually right now, I am saving the password in an ADS (Alternate Data Stream) file but the problem is neither FAT nor FAT32 support ADS files; ADS files can be created only in NTFS file systems. So if it happens that a user doesn't have NTFS in his system, then he won't be allowed to create a password.


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

  4. #4
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    Re: Password In Resource File!

    CVMichael has a good example of encryption in his sig

  5. #5

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Re: Password In Resource File!

    CVMichael has a good example of encryption in his sig
    Let CVMichael have a good encryption example or Michael Jackson, what's the use when the encrypted file can easily be tampered with, my dear friend! & that's exactly what I have stated in English in my previous post......


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

  6. #6
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Re: Password In Resource File!

    Well resources are easy to extract from an exe, so why not just write to the exe itsself in encrytped form?

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Password In Resource File!

    Quote Originally Posted by arpan_de
    Let CVMichael have a good encryption example or Michael Jackson, what's the use when the encrypted file can easily be tampered with, my dear friend! & that's exactly what I have stated in English in my previous post......
    Chill.

    To be frank, all the methods listed in this thread are more or less equally secure/insecure. Your best bet is (one-way) encryption and some method of checking whether the file in which it is stored has been tampered with, such as a checksum.

  8. #8
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068

    Re: Password In Resource File!

    Quote Originally Posted by arpan_de
    Let CVMichael have a good encryption example or Michael Jackson, what's the use when the encrypted file can easily be tampered with, my dear friend! & that's exactly what I have stated in English in my previous post......
    Man, you have quite the attitude for someone who's asking others for help...

    No matter what, there is always a way to modify the password files or info unless it is hard-coded int the program and have found a way to stop people from patching you application.

    Regardless, there is only so much you can do to prevent people screwing with your apps.

    And honestly, I am surprised anyone helped you in this thread. They offer solutions and you get all snide with everyone.

  9. #9

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Re: Password In Resource File!

    Well, I am extremely sorry friends if you have found my response scornful but believe me, I didn't mean it. Maybe I should have expressed myself in a different way.

    Sorry once again, mates!


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

  10. #10

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Re: Password In Resource File!

    so why not just write to the exe itsself in encrytped form?
    Jmacp, could you please show me a small example or link me to a post which does this? I have never done anything as such.


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

Posting Permissions

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



Click Here to Expand Forum to Full Width