Forum Discussion
Oliver_Schmidt
Nimbostratus
Feb 14, 2006base64 decoding
Hi,
I want to base64 decode a 24 character string to a 32 Hex string.
b64decode transfoms the string to a 16 Byte long string
To convert it to the 32 Hex values I use the TCL command
binary scan $v2 H* v3
Example:
set v1 6LCnVil6ib5Df9+6JFiW5A==
set v2 [b64decode $v1]
binary scan $v2 H* v3
log $v3
v3 has the value
2756297a89be437ffa245896e4
it should have:
e8b0a756297a89be437fdfba245896e4
binary scan does not work correct.
For some values it works.
Is there another way to do the conversion?
regards,
Oliver
- Colin_Walker_12Historic F5 AccountYou might also take a look at the binary format command, which works much the same way.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects