Announcement

Collapse
No announcement yet.

bf_encrypt weirdness?

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

    bf_encrypt weirdness?

    Code:
    <MvAssign name="key" value="1ABCDEFGHIJKLMN2">
    <MvAssign name="word" value="doyouowndogs">
    <MvAssign name="l.ok" value="{ bf_encrypt(key,word,wordenc) }">
    <MvEval expr="{ l.ok $ ' = '  $ wordenc }">
    RESULT = l.ok is a 1 (so bf_encrypt worked) BUT wordenc is blank ????

    I have done this in the past, so I know it has worked and either I am having a brain fart (entirely possible) or to much wine???
    William Gilligan - Orange Marmalade, Inc.
    www.OrangeMarmaladeinc.com

    #2
    SOLVED.
    We are running amazon linux and using
    Code:
    <MvEval expr="{ crypto_last_ssl_error() }">
    returns openssl error 50856204 which when googled is "OpenSSL error 50856204 in digital envelope routines: function (null): unsupported."

    So it runs fine, but fails to return a result. On to the next issue....
    William Gilligan - Orange Marmalade, Inc.
    www.OrangeMarmaladeinc.com

    Comment


      #3
      You should not be using blowfish at this point. It has been disabled in OpenSSL, and will ultimately be removed, which means an update to the underlying openssl library will break your code.
      David Hubbard
      CIO
      Miva
      [email protected]
      http://www.miva.com

      Comment


        #4
        Thanks. I realize that (brain fart plus wine). As soon as I checked the error the lights went back on :-)
        This was for some testing against a url parameter.
        William Gilligan - Orange Marmalade, Inc.
        www.OrangeMarmaladeinc.com

        Comment

        Working...
        X