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 6215603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:05:16+00:00 2026-05-24T07:05:16+00:00

I have an API that receives Unicode data, but I only need to store

  • 0

I have an API that receives Unicode data, but I only need to store ASCII in it. I’d like to compress & obfuscate (or encrypt) the string values that will be persisted in Unicode.

My desire is to either compress this schema data, or to encrypt it from prying eyes. I don’t think it’s possible to do both well.

Considering that I want to restrict my source data to valid, printable ASCII; how can I “compress” that original string value into a value that is either smaller, obfuscated, or both?

Here is how I imagine this working (though you may have a better way):

  1. This source code will take a given String as input
  2. The bytes representation of that string will be taken (UTF8, ASCII, you decide)
  3. Some magic happens – (this is the part I need your help on)
  4. The resulting bytes will be converted into an int or long (no decimal points)
  5. The number will be converted into a corresponding character using this utility
    http://baseanythingconvert.codeplex.com/SourceControl/changeset/view/77855#1558651

(note that utility will be used to enforce the constraint is that the “final” Unicode name must not include the following characters ‘/’, ‘\’, ‘#’, ‘?’ or ‘%’)

Background

The Microsoft Azure Table has an API that accepts Unicode data for the storage or property names. This is a schema-free database (so columns can be created ad-hoc), therefore the schema is stored per row. The downside is that this schema data is stored on disk multiple times, and it is also transmitted over the wire, quite redundantly, in an XML blob.

In addition, I’m working on a utility that dynamically encrypts/decrypts Azure Table Data, but the schema is unencrypted. I’d like to mask or obfuscate this header information somehow.

  • 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-24T07:05:18+00:00Added an answer on May 24, 2026 at 7:05 am

    These are just some ideas.

    Isn’t step 3 actually straightforward (just compress and/or encrypt the data into different bytes)? For 7-bit ASCII, you can also, before compressing and/or encrypting, store the data by packing the bits so they fit into fewer bytes.

    If you can use UTF-32, UTF-8, and so on in step 5, you have access to all the characters in the Unicode Standard, up to 0x10FFFD, with some exceptions; for example, some code points are noncharacters in the Unicode Standard, such as 0xFFFF, and others are invalid characters, such as 0xD800.

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

Sidebar

Related Questions

So, I have an API that I need to implement in to an existing
I have a need to create a transactional process using an external API that
I have a mini API that is only for an app I have built.
I have an shared object that need to be send to a system API
I have an algorithm that receives input and delivers output which I would like
Say I have a function that receives a byte array: void fcn(byte* data) {
I need to hook into an API that receives a StAX XMLStreamReader as the
I have a COM (C++) API that listens for data updates from a server
I have an application that receives a pointer to JPEG data from a camera
I have an API that is dependent on certain state information between requests. As

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.