Skip to content

Instantly share code, notes, and snippets.

View filippocostalli's full-sized avatar

Filippo Costalli filippocostalli

View GitHub Profile
@filippocostalli
filippocostalli / Base64EncodeFile.ps1
Created January 10, 2026 11:02 — forked from TheWover/Base64EncodeFile.ps1
Base64 encode a file and copy it to the clipboard using PowerShell. Posted as a Gist mainly for my own sake so that I don't have to Google the syntax every two days.
$filename = "C:\\Testing\donut\\payload.bin"
[Convert]::ToBase64String([IO.File]::ReadAllBytes($filename)) | clip