Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting Hex to Base64 with notepad++

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!?

like image 373
aagargoura Avatar asked Feb 03 '17 14:02

aagargoura


1 Answers

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

like image 83
aagargoura Avatar answered Dec 04 '22 09:12

aagargoura