Skip to content

Instantly share code, notes, and snippets.

@jayaramyalla
Forked from Arno0x/poshB64Encode.sh
Created September 30, 2018 12:21
Show Gist options
  • Save jayaramyalla/18f5dee8a435658ff434d7b75f3ec573 to your computer and use it in GitHub Desktop.
Save jayaramyalla/18f5dee8a435658ff434d7b75f3ec573 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Base64 encoded, ready to be used with 'powershell -e':"
echo "$1" | iconv --to-code UTF-16LE | base64 -w 0
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment