Results 1 to 4 of 4

Thread: Has anybody used the Chilkat Crypt2 functions successfully?

  1. #1
    Join Date
    Feb 2009
    Location
    Goteborg, Sweden
    Posts
    3,189

    Default Has anybody used the Chilkat Crypt2 functions successfully?

    Has anybody used the Chilkat Crypt2 functions successfully?

    I know there are crypt functions for DataFlex but I'm testing various Chilkat functions.

    I have the full Chilkat ActiveX library and it is awesome in many ways. One is definitely all the samples written in the DataFlex language. That is really cool.

    Anyhow, I tried two different encryption algorithms but both returns an empty string (!).

    The two samples I tried are;
    https://www.example-code.com/dataflex/chacha20.asp

    and;

    https://www.example-code.com/dataflex/crypt2_aes.asp

    Both encryption functions returns a blank string and I don't understand why? As said I'm not running in demo mode and I have used the "ComUnlockComponent" function in an OnCreate procedure to check that the license info is correct.

    Anybody has any input on what might be the culprit?
    Nils Svedmyr
    RDC Tools International
    www.rdctools.com

    "The problem with internet quotes is that you don't know if they are true."
    Abraham Lincoln

  2. #2
    Join Date
    Feb 2009
    Location
    Somewhere in Vermont, USA - unless I'm not
    Posts
    11,085

    Default Re: Has anybody used the Chilkat Crypt2 functions successfully?

    Hi Nils - I haven't, but... They usually include a way to check errors. I don't see them in their sample, but the AWS Bucket download has:

    Code:
        If (iSuccess <> True) Begin
            Get ComLastErrorText Of hoHttp To sTemp1
            Showln sTemp1
        End
        Else Begin
            Showln "File downloaded."
        End
    Maybe Matt (aka support@chilkatsoft.com) could tell you if that's possible in these routines?
    Garret

    Time for an oldie but goodie:

    "If it ain't broke, you're not trying." - Red Green

  3. #3
    Join Date
    Feb 2009
    Location
    Stuart, FL
    Posts
    5,322

    Default Re: Has anybody used the Chilkat Crypt2 functions successfully?

    we use the crypt functions in a number of places

    def check lasterror if you think something went wrong
    Michael Salzlechner
    StarZen Technologies, Inc
    http.://www.starzen.com

    IT Director at Balloons Everywhere

    Development Blog
    http://www.salzlechner.com/dev

    DataFlex Package Manager (aka Nuget for DataFlex)
    http://windowsdeveloper.com/dfPackage

  4. #4
    Join Date
    Feb 2009
    Location
    Goteborg, Sweden
    Posts
    3,189

    Default Re: Has anybody used the Chilkat Crypt2 functions successfully?

    Thank you Garret & Michael.

    Turned out to be a couple of things I had missed after purchasing the whole Chilkat bundle;

    Firstly there is - in addition to the "ComUnlockComponent" function - a "ComUnlockBundle" message that is to be used for the whole suite, and it is to be applied to a global "cComChilkatGlobal" object and not to an individual class object (like cComChilkatCrypt2).

    Secondly I had mixed up my unlock codes and was trying to use my old one for the email component to unlock the whole bundle...

    P.S. Just as Garret said it is difficult to find the very essential "ComLastErrorText" message in the docs, and it really helped using that.

    Problem solved!
    Nils Svedmyr
    RDC Tools International
    www.rdctools.com

    "The problem with internet quotes is that you don't know if they are true."
    Abraham Lincoln

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •