Converting Hex To Base64 With Notepad++


Answer :

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



The characters FB can be encoded as the 16-bit values 46004200 and encoding that in Base 64 gives RkI=.



Using Notepad++ menu => TextFx => TextFx Tools => Base 64 decode:




  • Converting +w== gives the single byte xFB. It show as thouse three characters in white on a black background. The status bar at the bottom of the window shows the buffer has a length of 1 (i.e. one).

  • Converting RkI= gives the two characters FB. Shown in black on a white background, i.e. as normal text. The buffer is shown to have a length of 2.



Conclusion, your initial conversion was of the two charactgers FB not the byte with value hex-FB.



Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable