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

Can't use decrypt_string function in calc field in grid, bug?

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

    Can't use decrypt_string function in calc field in grid, bug?

    Hi,

    I have a form that tries to use decrypt_string(Field,"pwd") in a calculated field in a grid and although that function is selectable via the function picker, *using it* causes an error and the grid will not save properly.

    Has anyone encrypted/decrypted data on the fly in a grid, with success that would care to chime in?

    With all the sites being hacked, I'd think we'd all be doing this....trying to encrypt sensitive data I mean, not failing I got that one down pat. ;)

    Thanks in advance.

    #2
    Re: Can't use decrypt_string function in calc field in grid, bug?

    Originally posted by [email protected] View Post
    Hi,

    I have a form that tries to use decrypt_string(Field,"pwd") in a calculated field in a grid and although that function is selectable via the function picker, *using it* causes an error and the grid will not save properly.

    Has anyone encrypted/decrypted data on the fly in a grid, with success that would care to chime in?

    With all the sites being hacked, I'd think we'd all be doing this....trying to encrypt sensitive data I mean, not failing I got that one down pat. ;)

    Thanks in advance.
    Bumps and hopes someone knows. I can't be the only one encrypting data.....

    Comment


      #3
      Re: Can't use decrypt_string function in calc field in grid, bug?

      Can't answer your question, but, as you may know, even if it works, unless you have an SSL cert. you will still be sending clear data back & forth across the web.
      Peter
      AlphaBase Solutions, LLC

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


      Comment


        #4
        Re: Can't use decrypt_string function in calc field in grid, bug?

        What I've done in the past is to use MD5() function to encrypt the password so that the actual password is not in the database, the encrypted value is. But Peter's right, encryption here only protects if someone steals your hard disk of User logins, or somehow gets hold of the file.

        The user still types in the regular clear text password in the Login screen, and that clear text password travels across the wires where someone could steal it. On the server side it does MD5(password) and compares the resulting encrypted value with the value in the database.

        p.s if you are using the new V8 Security Framework, that encryption is taken care of for you, with more enhanced encryption that good old MD5().

        Maybe explain what you are doing. Because if any user enters their password anywhere in a browser, even if you are encrypting it using xbasic, its still being transferred from the clent browser to the server prior to being encrypted.

        SSL however makes every transation encrypted.
        Steve Wood
        See my profile on IADN

        Comment


          #5
          Re: Can't use decrypt_string function in calc field in grid, bug?

          Originally posted by Peter.Greulich View Post
          Can't answer your question, but, as you may know, even if it works, unless you have an SSL cert. you will still be sending clear data back & forth across the web.
          I'm less concerned about a "man in the middle" issue then I am about the data being hacked at the server itself.

          Thanks for responding though.

          Comment


            #6
            Re: Can't use decrypt_string function in calc field in grid, bug?

            Originally posted by Steve Wood View Post
            What I've done in the past is to use MD5() function to encrypt the password so that the actual password is not in the database, the encrypted value is. But Peter's right, encryption here only protects if someone steals your hard disk of User logins, or somehow gets hold of the file.

            The user still types in the regular clear text password in the Login screen, and that clear text password travels across the wires where someone could steal it. On the server side it does MD5(password) and compares the resulting encrypted value with the value in the database.

            p.s if you are using the new V8 Security Framework, that encryption is taken care of for you, with more enhanced encryption that good old MD5().

            Maybe explain what you are doing. Because if any user enters their password anywhere in a browser, even if you are encrypting it using xbasic, its still being transferred from the clent browser to the server prior to being encrypted.

            SSL however makes every transation encrypted.

            Password issue aside, my original concern is the hacking of the server itself. Passwords being encrypted won't protect the data in any of the tables with perhaps the exception of the passwords themselves, and if they have the data, they don't need passwords.....

            Thanks for responding...

            But back to the original question...can you decrypt using the A5_decrypt function *in a grid*

            /me waves to the fine folks at Alpha that would have to know *smile*

            Alpha cares about security, they made the security framework.

            This concept I'm discussing is even more important, I would think, since you could already do what the framework does now with some code (I know this because I do it).

            Encrypting the data *where it resides on the web server* is a really desirable outcome and I'm hoping Alpha will let you decrypt on the fly in a grid....

            /me crosses fingers

            Comment


              #7
              Re: Can't use decrypt_string function in calc field in grid, bug?

              Don't know how to use A5_decrypt in a grid, it would have to be in a calculated field.

              But...

              If you want to encrypt your data, just do the following:
              • Open your app in A5
              • Set a database password under security
              • after its set, select Encrypt tables, select the tables you want to encrypt


              that's pretty much it. Your data is encrypted, but both the desktop and the web side read/write the data just fine.


              ...you could already do what the framework does now with some code ...
              Do explain because I tried pretty hard. How do you simulate Group Security with out the Framework? How do you avoid having to put code on each A5W page for security, without the Framework?
              Steve Wood
              See my profile on IADN

              Comment


                #8
                Re: Can't use decrypt_string function in calc field in grid, bug?

                Originally posted by Steve Wood View Post
                Don't know how to use A5_decrypt in a grid, it would have to be in a calculated field. <<<That's what I'm trying to do>>>

                But...

                If you want to encrypt your data, just do the following:
                • Open your app in A5
                • Set a database password under security
                • after its set, select Encrypt tables, select the tables you want to encrypt


                that's pretty much it. Your data is encrypted, but both the desktop and the web side read/write the data just fine. <<<So an encrypted table can be accessed just like a unencrypted table via WAS...I did not know that, that might let me achieve my goal in a different way but....>>>



                Do explain because I tried pretty hard. How do you simulate Group Security with out the Framework? How do you avoid having to put code on each A5W page for security, without the Framework? <<< I never said I could do that without coding but I also am doing more than the framework provides>>>
                The framework is neat and will probably work for a lot of people, my application requires a more granular (down to what fields can be seen not just if the page can be seen/read-write for example) approach. I've had to use a combination of an include file in conjunction with code on each page/event. No way around it for my situation.

                I appreciate the feedback and will look at encrypting the tables in place. But just for sport....;)

                /me returns to the original question that remains unanswered but is answerable I believe with every ounce of my being...

                Can you use A5_decrypt in a calc field that would be used in a grid? I know you can use it in a WAS page in a dialog for a fact. If it can't be used in a grid, why not just say so?

                /waves frantically as the simple question goes unanswered.....please don't make me burn an incident to get this answered, that would make me sad.

                Comment


                  #9
                  Re: Can't use decrypt_string function in calc field in grid, bug?

                  Maybe this will give you some insight?

                  From the interactive editor:
                  Code:
                  t=table.open("clients")
                  
                  t.fetch_first()
                  
                  ?decrypt_string(t.Client_Name,"pwd")
                  = ?;?rlNTfR]S@%%v)TrZt;NOcj28mqGA"Vf'OTT-xDD"j:!X9Dc
                  
                  ?decrypt_string(clients->Client_Name,"pwd")
                  ERROR: Field is not recognized
                  Notice that the 1st one works, but the other does not.
                  Peter
                  AlphaBase Solutions, LLC

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


                  Comment


                    #10
                    Re: Can't use decrypt_string function in calc field in grid, bug?

                    The Security Framework IS field level. I don't know the answer to your primary question.
                    Steve Wood
                    See my profile on IADN

                    Comment


                      #11
                      Re: Can't use decrypt_string function in calc field in grid, bug?

                      Originally posted by Peter.Greulich View Post
                      Maybe this will give you some insight?

                      From the interactive editor:
                      Code:
                      t=table.open("clients")
                      
                      t.fetch_first()
                      
                      ?decrypt_string(t.Client_Name,"pwd")
                      = ?;?rlNTfR]S@%%v)TrZt;NOcj28mqGA"Vf'OTT-xDD"j:!X9Dc
                      
                      ?decrypt_string(clients->Client_Name,"pwd")
                      ERROR: Field is not recognized
                      Notice that the 1st one works, but the other does not.
                      I'm going to see if what you've suggested could work in a grid. I can already decrypt in code, it's making a calculated field work in a grid that seems to be elusive.

                      Thanks

                      Comment


                        #12
                        Re: Can't use decrypt_string function in calc field in grid, bug?

                        Originally posted by Steve Wood View Post
                        The Security Framework IS field level. I don't know the answer to your primary question.
                        I was looking at the help file for information on the security framework and wonder if you can clarify the following if the framework is used:

                        For user A: field X on a grid is visible but read only
                        For user B: field X on a grid is visible and read/write
                        For user C: field X on a grid is not visible


                        I would think B and C but does the framework support A B & C ? Of course you can do it in code without the framework but is it really easier with the framework?

                        Also, I have a lot of levels to support the granularity my application requires, do you find the security framework helpful for complex rights assignments?

                        Thanks

                        Comment

                        Working...
                        X