Hi, got a hex string

3E 65 72 3D 65

which first needs to be reversed to

C7 6A E4 CB 6A

then I need to move the 4 LSB in each byte to the 4 LSB in the next byte, need also to include 4 new bits (x) in the first byte of course, it will look like

Cx 67 EA C4 6B

Any ideas of existing functions?

Thanks

What do you mean with reversing a hex string?

Maybe my question was a little bit wrong. I would like to reverse a nibble. I have a dodgy solution but it works...

Now I have a different issue. I would like

temp1psc :

to look like

Any ideas?

Maybe my question was a little bit wrong. I would like to reverse a nibble. I have a dodgy solution but it works...

Now I have a different issue. I would like

temp1psc :

to look like

Any ideas?

''.join()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.