Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Security

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Security

    I want to be able to allow multiple users (not all) access the runtime program only and have the capability to administer users for adding, deleting and passwords, while also encrypting the tables. I do not want to install a full A5 on their terminals.

    I currently get half way by having a logon process, but this does not allow for encryption. I have a table called staff. They all have an access level. Anyone with an access level of 1 can add/update/delete staff. I want to also encrypt the tables, but I can't see how to do this outside the security module on the tools menu which is not (I think) available under the runtime
    -----------------------------------------------
    Regards
    Mark Pearson
    [email protected]
    Youtube channel
    Website

    #2
    Re: Security

    Not clear on what

    "... I can't see how to do this..."

    might mean. What "this" are you referencing? What is it that you want the runtime user to be able to do ?

    Comment


      #3
      Re: Security

      Mark,
      As soon as you "Set Database Password" the tables are encrypted. You can confirm this by trying to open the dbf with Excel after encryption. There is a suite of security functions available that work with the runtime. E.g. a5_change_user_password, a5_add_new_user, etc..
      Garry

      Comment


        #4
        Re: Security

        Originally posted by Clunes View Post
        I want to also encrypt the tables, but I can't see how to do this outside the security module on the tools menu which is not (I think) available under the runtime
        Sounds like you must be constantly adding new tables, eh? Anyway, you can encrypt w. xbasic, such as tbl.encrypt(), if I remember correctly. In past experience I have found that you would need to set the master password w. xbasic as well in the autoexec file (and not through the CP ui). Not sure if that holds true in v10?


        Originally posted by Garry Flanigan View Post
        Mark,
        As soon as you "Set Database Password" the tables are encrypted.
        That's not true. You have to encrypt the table(s) after setting the master password.
        Peter
        AlphaBase Solutions, LLC

        [email protected]
        https://www.alphabasesolutions.com


        Comment


          #5
          Re: Security

          You can encrypt 1 table, several tables or all the tables. It is up to you what you want.

          I am running something right now, but will give you a script that you can use to encrypt what you want. This protects someone out side alpha from stealing data, but the user can still see it.

          .
          Dave Mason
          [email protected]
          Skype is dave.mason46

          Comment


            #6
            Re: Security

            Encrypt??

            Code:
            ' This is how to set the encryption [U][B]in autoexec[/B][/U]:
            default_encryption_key_set("porcupine")
             
            'Then a script with something like the following?
            dim t as P
            t = table.open("names")
            't.decrypt()
            t.encrypt()
            t.close()
            as far as a user seeing the password. I or IT gives them permissions. Mostly they can see and change their own, but can not see others.

            I do NOT use the alpha security system because I already had a good one when they came with theirs.

            .
            Dave Mason
            [email protected]
            Skype is dave.mason46

            Comment


              #7
              Re: Security

              Peter,

              Code:
              That's not true. You have to encrypt the table(s) after setting the master password.
              You are correct and just when I thought I had a good memory - I guess its been too long since I got my hands dirty in this area, but it is a timely reminder. I better go do some more reading....
              Garry

              Comment


                #8
                Re: Security

                S you all know, I detest password protecting the whole adb. Too hard to reverse.
                Dave Mason
                [email protected]
                Skype is dave.mason46

                Comment


                  #9
                  Re: Security

                  Thanks for all the feed back and ideas. I did not realise that a user can actually access security with the runtime version as long as they can see the control panel. This is making me rethinking my access control
                  -----------------------------------------------
                  Regards
                  Mark Pearson
                  [email protected]
                  Youtube channel
                  Website

                  Comment


                    #10
                    Re: Security

                    Originally posted by Clunes View Post
                    TI did not realise that a user can actually access security with the runtime version as long as they can see the control panel.
                    Given the above, is there anyway to password access to the control panel?

                    Comment


                      #11
                      Re: Security

                      All you need do is have it hidden at startup. Before doing so have a process where you can get it back if you need it. I do it by having a menu item called access design mode. This runs an action script that simply:

                      Step1. Select the prompt for a password action
                      Step2. Show the control panel. The action only works based on a If/then condition.
                      Step3. Display msgbox. This has the opposite condition to the password succes step two. Tells the user they failed
                      Step4. Select show control panel. If step 2 is corrent then this will show.

                      The above was created in 5 minutes in action scripts. Below is a view of teh xbasic that it created. Note the password I used was "mypassword". You should be able to copy and paste as xbasic and run

                      dim prmpt_title as c
                      dim prmpt_prompt as c
                      dim prmpt_default as c
                      dim prmpt_mask as c
                      prmpt_title = "Access Design mode"
                      prmpt_prompt = "Insert design password"
                      prmpt_default = ""
                      prmpt_mask = "*"
                      DIM SHARED mypass AS C
                      mypass = ui_get_password(prmpt_title,prmpt_prompt,prmpt_default,prmpt_mask)
                      'Conditional code follows. Executes only if the condition expression is True.
                      IF a5_eval_expression("=Var->mypass = \"mypassword\"",local_variables()) THEN
                      'Show the Control Panel (after previously hiding it).
                      :controlpanel.show()
                      END IF
                      'Conditional code follows. Executes only if the condition expression is True.
                      IF a5_eval_expression("=Var->mypass <> \"mypassword\"",local_variables()) THEN
                      'Displays a message box (style:'OK Button', image: 'Information symbol', id: 'mess1').
                      DIM SHARED mess1_result as N
                      DIM SHARED mess1_OK_Button as L
                      mess1_OK_Button = .F.
                      title_var = "Invalid password"
                      message_text_var = <<%text%
                      Access is denied. You have not entered the corect password. Contact teh administrator if you need access.
                      %text%
                      mess1_result=ui_msg_box(title_var,message_text_var,UI_OK+ UI_FIRST_BUTTON_DEFAULT+ UI_INFORMATION_SYMBOL)
                      'Test to see which button on the message box was pressed....
                      SELECT
                      CASE mess1_result = UI_OK_SELECTED
                      mess1_OK_Button= .t.
                      END SELECT
                      END IF
                      'Conditional code follows. Executes only if the condition expression is True.
                      IF a5_eval_expression("=Var->mypass <> \"mypassword\"",local_variables()) THEN
                      'End the current script
                      END
                      END IF
                      'Show the Control Panel (after previously hiding it).
                      :controlpanel.show()
                      -----------------------------------------------
                      Regards
                      Mark Pearson
                      [email protected]
                      Youtube channel
                      Website

                      Comment


                        #12
                        Re: Security

                        I am missing something here. Running this code seems to accept the 'mypassword' for a password - and displays an error if I type something else ... but doesn't show the control panel.

                        I am trying to do the same thing; hide the control panel at startup and control access to it using a password protected button on the startup form.

                        Comment


                          #13
                          Re: Security

                          Got it. Missing activate command.

                          Comment


                            #14
                            Re: Security

                            I do that a little different by having a hidden button on the main menu form of my app. Very little code and it seems to work well. If you know exactly where the button is, it works, that is.

                            I might add, it only works if I am the user. LOL




                            .
                            Dave Mason
                            [email protected]
                            Skype is dave.mason46

                            Comment


                              #15
                              Re: Security

                              That's how I originally had it but then you have to find the hidden button.

                              Comment

                              Working...
                              X