Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8505393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:18:18+00:00 2026-06-11T02:18:18+00:00

I downloaded a trial version for 64-bit Python 2.7: chilkat-9.3.2-python-2.7-x86_64-linux.tar.gz. I found a strange

  • 0

I downloaded a trial version for 64-bit Python 2.7: chilkat-9.3.2-python-2.7-x86_64-linux.tar.gz. I found a strange problem: when I wrote one method (decrypRSA() as follow) which will decode given RSA encrypted string, it works only if I call it directly in command line in linux. It will difinitely throw exception when it was called in other method to response an http request. I haven’t found any trouble shoot for this issue on website.

Here is the exception stack track:

File "/data/api_test.xxx.com/0/v0/share/auth/utils.py", line 301, in decrypRSA
    return rsa.decryptStringENC(encodedText,False)
  File "/usr/local/lib/python2.7/site-packages/chilkat.py", line 1319, in decryptStringENC
    def decryptStringENC(self, *args): return _chilkat.CkRsa_decryptStringENC(self, *args)

TypeError: in method 'CkRsa_decryptStringENC', argument 2 of type 'char const *'


And here is the definition for decrypRSA() method:


    @staticmethod
    def decrypRSA(encodedText, publicKey):
        print ('Utils.decrypRSA()-parameters: encodeText=%s, public key=%s' % (encodedText, publicKey,))
        rsa = CkRsa()
        success = rsa.UnlockComponent("30-day trial")
        if (success != True):
            logging.info("Utils.decrypRSA(): RSA component unlock failed")
            return ''
        #  Import the public key into the RSA object:
        success = rsa.ImportPublicKey(publicKey)
        if (success != True):
            logging.info("Utils.decrypRSA(): RSA failed to import public key: %s" % rsa.lastErrorText())
            return ''
        rsa.put_EncodingMode("base64")
        rsa.put_LittleEndian(True)
        return rsa.decryptStringENC(encodedText,False)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:18:19+00:00Added an answer on June 11, 2026 at 2:18 am

    I don’t know if it’s something internal, or if the encodedText is something you’re passing in. It could be an issue with a unicode string being cast to something other than ‘char const *’. In this case, you could either encode the string, or use a regular ascii string instead of a unicode string.

    Saw this: https://github.com/chokkan/simstring/issues/6

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just downloaded and installed a trial JProfiler version from jprofiler_linux_7_0_1.sh . The strange
I struggle to uninstall VS 2010. I downloaded and used first trial version for
I recently downloaded VS 2010 trial, the new version is more easy to use.
I´ve just downloaded the pro version of CloudBerry (I´m in the 15 day trial).
I just downloaded a trial version of NDepend. What I'm looking for is a
I have recently downloaded a trial version of YourKit and after playing with it
Yesterday, I've downloaded and install the free trial version of WAS v7. The version
I just downloaded the Visual Studio 2010 trial. It would be nice if I
Downloaded Reachability from Apple, using this method to check for an active connection: -(BOOL)isReachable{
Hi I have downloaded TFS 2010 Trail version. And currently my system is having

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.