Announcement

Collapse
No announcement yet.

Miva bf_encrypt() function

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

  • robinemcd
    replied
    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.

    Leave a comment:


  • robinemcd
    replied
    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.

    Leave a comment:


  • robinemcd
    replied
    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?

    Leave a comment:


  • robinemcd
    replied
    Thank you. Will check on that.

    Leave a comment:


  • dcarver
    replied
    The likely issue is you do not have the crypto system library configured. Call crypto_last_error and see what it outputs.

    Leave a comment:


  • robinemcd
    replied
    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

    Leave a comment:


  • wmgilligan
    replied
    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

    Leave a comment:


  • robinemcd
    started a topic Miva bf_encrypt() function

    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
Working...
X