用记事本++将Hex转换为Base64 [英] Converting Hex to Base64 with notepad++

查看:1289
本文介绍了用记事本++将Hex转换为Base64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



通过使用notepad ++转换,例如, FB in Hex在Base64中是 RkI =



如果我使用 http://tomeko.net/online_tools/hex_to_base64.php?lang=en



我得到的不同值等于: + w =​​=

其实,这个值是正确的,因为当我使用纸和笔来计算这个转换时,我得到了相同的值:D

任何人都可以解释记事本++如何实现这个转换!?

解决方案

诀窍是通过在记事本++中直接转换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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆