Announcement

Collapse
No announcement yet.

Miva bf_encrypt() function

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

    Miva bf_encrypt() function

    Hi All,

    I’m having issues with the Miva bf_encrypt() function, I have the following code:

    <MvASSIGN NAME="l.Encrypt_Key" VALUE="oT4abMN4OtYcb6Gr">
    <MvASSIGN NAME="l.Full_Name" VALUE="Robin McDermott">
    <MvASSIGN NAME="l.Encrypt_OK" VALUE="{bf_encrypt( l.encrypt_key, l.Full_Name, l.Encrypt_Full_Name )}">

    The results are l.Encrypt_OK is always zero and the l.Encrypt_Full_Name is always null

    I know the function exists because if I change the name to say bf_encrypt1() I get a compile error and if I l.Encrypt_Full_Name to ‘l.Encrypt_Full_Name’ I also get a compile error.

    Thanks.
    Regards, Robin
    ---------------------------------
    Robin McDermott, CQE
    Director of Training
    QualityTrainingPortal.com

    #2
    Hi Robin,
    Running the exact code (copy/paste) of what you did seems to work for me.
    <MvASSIGN NAME="l.Encrypt_Key" VALUE="oT4abMN4OtYcb6Gr">
    <MvASSIGN NAME="l.Full_Name" VALUE="Robin McDermott">
    <MvASSIGN NAME="l.Encrypt_OK" VALUE="{bf_encrypt( l.encrypt_key, l.Full_Name, l.Encrypt_Full_Name )}">

    <MvEval expr="{ l.Encrypt_OK $ '=' $ l.Encrypt_Full_Name }">
    1=�!O�����'�Y]cb

    Looks like something else may be happening on your end? Old Empressa or compiler maybe?
    Bill
    William Gilligan - Orange Marmalade, Inc.
    www.OrangeMarmaladeinc.com

    Comment


      #3
      Hi Bill!! Good to hear from you and thanks for your thoughts. I suspect it may be an old compiler so I will check into that. We are on the most recent version of Empresa.

      Thanks so much Bill. Will report back.

      Robin
      ---------------------------------
      Robin McDermott, CQE
      Director of Training
      QualityTrainingPortal.com

      Comment


        #4
        The likely issue is you do not have the crypto system library configured. Call crypto_last_error and see what it outputs.
        David Carver
        Miva, Inc. | Software Developer

        Comment


          #5
          Thank you. Will check on that.
          ---------------------------------
          Robin McDermott, CQE
          Director of Training
          QualityTrainingPortal.com

          Comment


            #6
            1. We are using the most recent compiler.
            2. We are running the most recent version of Empresa.
            3. When we run: 'Call crypto_last_error' we get: "Unable to load SSL routine SSLeay / OpenSSL_version_num" I believe that we are running OpenSSL version 1.0. What version is required for encryption?
            ---------------------------------
            Robin McDermott, CQE
            Director of Training
            QualityTrainingPortal.com

            Comment


              #7
              Hello, hoping someone can answer this question:


              When we run: 'Call crypto_last_error' we get: "Unable to load SSL routine SSLeay / OpenSSL_version_num" I believe that we are running OpenSSL version 1.0. What version is required for encryption?

              Also, Can anyone advise where I can find examples of how this all works please.
              Last edited by robinemcd; 04-09-21, 02:20 PM.
              ---------------------------------
              Robin McDermott, CQE
              Director of Training
              QualityTrainingPortal.com

              Comment


                #8
                Still hoping for an answer to these questions. Does no one use these functions?


                When we run: 'Call crypto_last_error' we get: "Unable to load SSL routine SSLeay / OpenSSL_version_num" I believe that we are running OpenSSL version 1.0. What version is required for encryption?

                Also, Can anyone advise where I can find examples of how this all works please.
                ---------------------------------
                Robin McDermott, CQE
                Director of Training
                QualityTrainingPortal.com

                Comment

                Working...
                X