Thread: base64 hex to hex string

  1. #1
    Registered User
    Join Date
    Oct 2021
    Posts
    7

    base64 hex to hex string

    Hello, I have real struggles to find the code which uses hex representation of base64 and converts to hex string. Over net, there only options like hex to base64, base64 to hex, but no examples where is hex on input and hex on output.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Surely hex on input and hex on output is just hex.

    Unless you're talking about say SREC (file format) - Wikipedia
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Oct 2021
    Posts
    7
    No, no SREC format. Hard to find a code which uses hex on input, since all codes what I seen compare symbols.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Hard to find anything given such a vague description of what you're after.
    $ echo hello | hd
    00000000 68 65 6c 6c 6f 0a |hello.|
    00000006


    Are you looking to convert say "hello" into "68656c6c6f"?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Oct 2021
    Posts
    7
    base64 hex to hex string-base64_issue-jpg

    Almost. The input is hex and output is also hex, which is smaller than input hex message on (3/4). The image show what is desired. The input must be hex.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Well you seem to know it's base64 encoded, so what's the problem?

    Oh, and post the machine readable version of what's in the left pane.
    Not a fuzzy picture.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Oct 2021
    Posts
    7
    I am struggling to find the C code for it. Will do better picture next time. My first post here, sorry for that quality.

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    I don't want a picture of any quality.
    I want to see the raw text you copy/pasted into that online tool, so I can copy/paste it into things I can try as well.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  9. #9
    Registered User
    Join Date
    Oct 2021
    Posts
    7
    Quote Originally Posted by Salem View Post
    I don't want a picture of any quality.
    I want to see the raw text you copy/pasted into that online tool, so I can copy/paste it into things I can try as well.
    Thank for effort. Figured out myself. The topic can be closed !

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem converting binary data to text using base64
    By MartinR in forum C Programming
    Replies: 30
    Last Post: 01-26-2014, 04:34 PM
  2. Replies: 2
    Last Post: 04-09-2012, 02:01 PM
  3. Replies: 22
    Last Post: 07-28-2011, 01:26 PM
  4. anyone used base64.h in a c++ program?
    By Anddos in forum C++ Programming
    Replies: 10
    Last Post: 03-22-2009, 04:10 PM
  5. Base64 encoder
    By gadu in forum C Programming
    Replies: 5
    Last Post: 06-29-2008, 06:32 AM

Tags for this Thread