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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:58:06+00:00 2026-06-11T17:58:06+00:00

I have a ~30 length byte arrays. I am looking for a way to

  • 0

I have a ~30 length byte arrays.

I am looking for a way to pass this data to several users with the following requirements:

1. It has to be short.. about 16 chars at max.

2. Only printable chars are acceptable (only digits or only letters will be even better).

3. It must to be a printable output (save to file or using socket is not what I want).

4. (Thanks to Tudor) I want to be able to decode it back to the original array

The arrays contain quite random data which makes this problem very difficult to crack.

I have tried many compression methods but with no luck so far.

After the compression I will probably encode the data to 64 base to make the output as short as possible (unless there is a better way to it)

The project is basically in java but if there is a solution in other language I would love to here about it.

thanks in advance

  • 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-11T17:58:07+00:00Added an answer on June 11, 2026 at 5:58 pm

    Truly random data will use as many bytes to encode as decode (if not more).

    When you compress data, you exploit inherent non-random structure in the data to make something which is more random but smaller. This is why it is very hard to compress already compressed data.

    In your case you appear to want to encode 30 * 8 bits or 240 bits into 16 * 6 bits or 96 bits. This means your data must not be very random to compress it at least 2.5 times. Compressing it this much every time would be very hard to do and you always have the possibility your compressed string will be larger than when you started. All you can do is to make this unlikely.

    Unless your data does not have inherent compressibility you cannot use lossless compression (which is reversible) If lossy compression is an option, you still have to make assumptions about what information can be lost.


    If you need to match a code with some information what you can do is to generate a random unique code and use this a key to some database. The benefit of using this approach is that the key can be as short as you like, provided you will never need more unique keys than you will generate, and you can associate as much information with the key as you like as well.

    I believe this is your best option given the constraints you have.

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

Sidebar

Related Questions

I have the following function: public static byte[] StringToByte(string str) { int length =
I have two byte[] arrays which are of unknown length and I simply want
In the following example (apologies for the length) I have tried to isolate some
I got a probably small problem using memcmp. I have two arrays (length =
I have a need to manipulate UTF-8 byte arrays in a low-level environment. The
I would like to hash images, which have been converted to byte arrays. The
I have a COM component (in C#) that has the following interface: namespace InterOp
I have picked up this example which converts BitSet to Byte array. public static
Background I'm working with byte arrays in JNI . And I can't get length
I have some image processing code that loops through 2 multi-dimensional byte arrays (of

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.