Not an accurate result compared to above but an acceptable troughput Note that's exactly the same as above however there has been no update as to most recent query about why it may not always work inbound as expected, but this is an outbound usage.Įxample of open issue echo Hello World!|b64 -e Result on screen or use in a pipe SGVsbG8gV29ybGQhDQo= There is a very small (7.7 kB) downloadable exe c 2015 that can be used to encode/decode to file or console like this b64 -e input.ext To decode output.txt certutil -decode -f output.txt output.ext 1>nul To avoid any hint of a hard drive file, it would need a memory file system.įor looping a folder use a for loop with variables to suit However like many conversion tasks it needs to be a file IO. To send to another command use a pipe to use the TYPE output.txt as input. Make any file (here simple text but can be PDF, docX or whatever.) echo Hello World!>input.extĬonvert to base64 certutil -encodehex -f "input.ext" "output.txt" 0x40000001 1>nul The usual windows way to generate a base 64 string is I have improved the result on the screen, by this new version of the command: certutil -encode -f tmp.b64 & cls & findstr /v /c:- tmp.b64 & del tmp.b64īut I would like to avoid creating the temporary file tmp.b64 every time. With just the certutil command, the result on the screen is contaminated by 3 lines which contain unrelated information.Ĭould someone help me to provide a command on Windows that produces only the base64 data? I have found this solution: certutil -encode -f tmp.b64 & findstr /v /c:- tmp.b64 & del tmp.b64īut this needs the system to generate a temporary file and so, at the end, go to destroy it. ![]() On Windows I'm not able to have the same result. ![]() To obtain the file's contents encoded as base64. I have see that on Unix system is sufficient to use cat | base64 I need to use a command line on Windows OS to generate the base64 data of a specific file on the screen (without generating a file).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |