Publishing to executable with password..

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • evvivame
    Forum Member
    • Jan 2007
    • 7

    Publishing to executable with password..

    Hello,
    I w'd like protect my exe with a password.
    I's possible ? If yes, where can I set it ??
    Thanks in advance !!!!!!
    Luciano
  • el5ateer
    Forum Member
    • Jul 2005
    • 88

    #2
    From the Help File

    Add Password Protection
    There are many instances requiring the user to be prompted for information that must not be visible on the screen, such as a password. In AutoPlay Media Studio this is accomplished by using a Dialog.PasswordInput action.

    As an example, we will prompt the user for a password at the start of your program, and compare it to a stored value (thereby limiting access to your program to only those who know the password).

    To accomplish this:

    Insert the following script in your page's On Show event:
    Code:
    -- the 'correct' password
    real_password = "password";
    
    -- prompt the user to enter a password
    user_password = Dialog.PasswordInput("Password", "Please enter the password: ", MB_ICONQUESTION);
    
    -- compare the user's password to the 'correct' password.
    -- If the user supplies the wrong password, exit the program.
    if real_password ~= user_password then
        Application.Exit();
    end
    This script pops up a dialog box requesting the password. Whatever the user types in this dialog box appears as *******. If the correct password is entered, the program runs normally. If any other password is entered, the program will close.

    Alternatively, you can have a 'list' of valid passwords. To accomplish this, store your valid passwords in a table:

    Insert the following script in your page's On Show event:
    Code:
    --assume the user enters a bad password
    correct_password = false;
    
    -- the 'correct' password
    real_passwords = {"password", "password2", "3rdPassword"};
    
    -- prompt the user to enter a password
    user_password = Dialog.PasswordInput("Password", "Please enter the password: ", MB_ICONQUESTION);
    
    -- compare the user's password to the 'correct' password.
    for j in real_passwords do
        if real_passwords[j] == user_password then
            correct_password = true;
        end
    end
    
    --if the password was bad, exit
    if not correct_password then
        Application.Exit();
    end

    Comment

    • evvivame
      Forum Member
      • Jan 2007
      • 7

      #3
      Hi,
      Thanks for your replay!
      Sorry.....my question was not clear!
      A password to block the decompression of the .exe file
      I hope, now,is better
      Thanks!!!!

      Comment

      • RizlaUK
        Indigo Rose Customer
        • May 2006
        • 5478

        #4
        A password to block the decompression of the .exe file
        in order for the exe to check for a password it must frist decompress

        have you tryed winrar
        Embrace change in your life, you never know, it could all work out for the best

        Comment

        • evvivame
          Forum Member
          • Jan 2007
          • 7

          #5
          Hello!
          Thanks for your replay!
          I try again .....
          After publishing on a executable file, I can decompress (with Winzip or Winrar) this .exe and change the output folders, ok?
          My questions is:
          How can I publishing a .exe not decompressbar (like not changeable) ?? (of course if the password is not know!!!)

          Thanks !!!
          Luciano

          Comment

          • Dermot
            Indigo Rose Customer
            • Apr 2004
            • 1790

            #6
            When building the exe, check the Encrypt data segment box.
            Dermot

            I am so out of here :yes

            Comment

            • RizlaUK
              Indigo Rose Customer
              • May 2006
              • 5478

              #7
              when you make the .exe check the box thay says "encrypt data segment" then you can not unpack it with winrar, you will still be able to view the files in the archive, but not change any of them

              hope that helps

              lol, Dermot beat me to it
              Embrace change in your life, you never know, it could all work out for the best

              Comment

              • evvivame
                Forum Member
                • Jan 2007
                • 7

                #8
                Hi,
                Dermot,RizlaUK very fine !!:lol
                Thanks!
                ps: Yes, with encrypt data segment, when I try to decompression, the system ask me the password ...but which? I have setting nobody password !!
                Luciano

                Comment

                • mindstitchdr
                  Indigo Rose Customer
                  • Dec 2004
                  • 239

                  #9
                  The password is random, generated by the app.

                  Comment

                  • TristanD
                    Forum Member
                    • Oct 2006
                    • 314

                    #10
                    so there is no way of findingt out what the password is?? ... i;ve got an app (web-Mail exe) with a few buttons in it,, i want to get then out bcause i lost my .apz..

                    Comment

                    • mgokkaya
                      No longer a forum member
                      • Apr 2006
                      • 191

                      #11
                      Originally posted by TristanD View Post
                      so there is no way of findingt out what the password is?? ... i;ve got an app (web-Mail exe) with a few buttons in it,, i want to get then out bcause i lost my .apz..
                      if u upload ur exe file then i can find the password for u

                      Comment

                      • TristanD
                        Forum Member
                        • Oct 2006
                        • 314

                        #12
                        do you mind telling me how you plan on finding the passw?

                        Comment

                        • RizlaUK
                          Indigo Rose Customer
                          • May 2006
                          • 5478

                          #13
                          so there is no way of findingt out what the password is?? ... i;ve got an app (web-Mail exe) with a few buttons in it,, i want to get then out bcause i lost my .apz..
                          You could try:

                          open temp folder >>C:\Documents and Settings\User\Local Settings\Temp, then run the app, while the app is running open the folder that was just created in temp ( will have a name something like "ir_ext_temp_6") and get your buttons
                          Embrace change in your life, you never know, it could all work out for the best

                          Comment

                          • TristanD
                            Forum Member
                            • Oct 2006
                            • 314

                            #14
                            i erm ... kinda made the app drop the files somewhere else.... and delete the temp stuff from the app.. NEXT PROBLEM : FORGOT WHERE THEY GO TO!!?

                            Comment

                            • cellsclinic
                              Forum Member
                              • Feb 2010
                              • 6

                              #15
                              accilent

                              Originally posted by RizlaUK View Post
                              You could try:

                              open temp folder >>C:\Documents and Settings\User\Local Settings\Temp, then run the app, while the app is running open the folder that was just created in temp ( will have a name something like "ir_ext_temp_6") and get your buttons
                              thanks dear
                              :yes

                              Comment

                              Working...
                              X