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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:47:58+00:00 2026-05-26T04:47:58+00:00

I have a base64 string that contains not printable chars. I want to modify

  • 0

I have a base64 string that contains not printable chars.

I want to modify just the printable one. But i can’t use base64 -d because I will lost the not printable ones.

Is that a command that allow me to do that?

Example, if I do

echo "base64 string" | base64 -d | od -c 

I obtain

0000000 004 002 254 334   0 202 003 362  \f  \0   0 202 003 354   0 202
0000020 003 350 002 002 006 021   0   -   0   )   0 036 002 004   A 343
0000040 271   | 002 003  \0 352 233 002 002 021 340 002 002  \0 232 002
0000060 001   . 004 006  \0  \f   ) 346 353 323  \f  \a   J   0   0   6
0000100   0   6

etc…

let’s say I want to modify just the J 0 0 with J 0 1…I can do this?

UPDATE:

For the moment the solution was in convert and output the base64 decode into a file and then edit it with an HEX Editor.

So if you know some command line HEX Editor native included in linux please tell me

  • 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-26T04:47:59+00:00Added an answer on May 26, 2026 at 4:47 am

    When I try it on my system I get

    base64: invalid input

    Since you want printable characters only, I’m suspecting that what you want is a base64 encoded string.

    If so, you should skipe the -d option:

    echo "base64 string" | base64 | od -c
    

    If you really want to change some characters into others, you could use the tr (translate) command:

    From man tr:

    tr – translate or delete characters

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

Sidebar

Related Questions

I have a binary that I want to convert to standard MIME-compliant base64 string.
I have a Base64 encoded String that contains PDF data. Using the EncdDecd unit
I have a PHP script that can encode a PNG image to a Base64
I have a Base64 string that's been gzipped in .NET and I would like
I have a Base64 String that represents a BitMap image. I need to transform
I have a base64 encoded string that I would like to convert into an
I have a Base64 binary string that is part of an XML document that
I have a string that was salted, hashed with SHA-256, then base64 encoded. Is
I have a .NET string which is Base64 encoded representation of an array of
I have an function which decodes the encoded base64 data in binary data but

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.