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

  • Home
  • SEARCH
  • 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 7572699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:59:27+00:00 2026-05-30T15:59:27+00:00

I am trying to store some cryptographic data in couchdb. I need to store

  • 0

I am trying to store some cryptographic data in couchdb. I need to store a salt and encrypted password in couchdb. The salt is generated using python’s os.urandom(8) and the sample output of that would look like:

'z/\xfe\xdf\xdeJ=y'

I’m using python-couchdb api to store the document. When I try to save the document I get:

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "build/bdist.macosx-10.7-intel/egg/couchdb/client.py", line 343, in __setitem__
    status, headers, data = resource.put_json(body=content)
  File "build/bdist.macosx-10.7-intel/egg/couchdb/http.py", line 499, in put_json
    **params)
  File "build/bdist.macosx-10.7-intel/egg/couchdb/http.py", line 514, in _request_json
    headers=headers, **params)
  File "build/bdist.macosx-10.7-intel/egg/couchdb/http.py", line 510, in _request
    credentials=self.credentials)
  File "build/bdist.macosx-10.7-intel/egg/couchdb/http.py", line 260, in request
    body = json.encode(body).encode('utf-8')
  File "build/bdist.macosx-10.7-intel/egg/couchdb/json.py", line 68, in encode
    return _encode(obj)
  File "build/bdist.macosx-10.7-intel/egg/couchdb/json.py", line 129, in <lambda>
    dumps(obj, allow_nan=False, ensure_ascii=False)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 238, in dumps
    **kw).encode(obj)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 204, in encode
    return ''.join(chunks)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfe in position 3: ordinal not in range(128)
  • 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-05-30T15:59:28+00:00Added an answer on May 30, 2026 at 3:59 pm

    Encode it as either base64 or as hex before saving, or save it in a binary field.

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

Sidebar

Related Questions

I'm trying to design some tables to store some data, which has to be
I'm trying to store some data in DOM Elements ($.cache) on my plugin but
I'm trying to store some data in the array call holder and the problem
I'm trying to use an SQLite database to store some data for my app.
I'm trying to use $.data() for the first time. I want to store some
So, I am trying to store some data on the SQLite db in Android,
Complete sql noob here. Trying to think about a way to store some data
I need to store some data in a Django model. These data are not
I'm looking to store some fairly sensitive data using PHP and MySQL and will
I'm trying to store some additional data along with the standard error message in

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.