用记事本++将Hex转换为Base64 [英] Converting Hex to Base64 with notepad++
问题描述
通过使用notepad ++转换,例如, FB
in Hex在Base64中是 RkI =
如果我使用 http://tomeko.net/online_tools/hex_to_base64.php?lang=en
我得到的不同值等于: + w ==
任何人都可以解释记事本++如何实现这个转换!?
诀窍是通过在记事本++中直接转换HEX,它被视为一个ASCII值,而不是按照预期的HEX值。
所以我们需要先转换HEX - > ASCII然后ASCII - > BASE64
1 /选择字符串
2 /使用Notepad ++菜单:插件 - >转换器 - > HEX - > ASCII
$ b 3 / 插件 - > MIME工具 - > Base64 Encode
所需的价值
I am playing around with converting Hex value into Base64.
By using notepad++ convertion, for exemple, the value FB
in Hex is RkI=
in Base64
and if I use http://tomeko.net/online_tools/hex_to_base64.php?lang=en
I get a different value equal to: +w==
Actually, this value is the correct one because I get the same value when I just calculate this convertion using a paper and a pen :D
Could anyone please explain how notepad++ make this convertion!?
The trick was that by converting the HEX directly in notepad++, It's taken as a ASCII value not as A HEX Value as intended.
So we need to converted first the HEX --> ASCII then ASCII --> BASE64
1/ Select the string
2/ Using Notepad++ menu: Plugins -> Converter -> HEX -> ASCII
3/ Plugins -> MIME Tools -> Base64 Encode
and we get the needed value
这篇关于用记事本++将Hex转换为Base64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!