Base64 Encode JSON Values

If you already have a YML file with the data you want to encode, you may have to go through a few hoops:
  1. Lint it up to make it the cleanest yml possible
  2. convert it to json
  3. Convert to latin1 because base64 doesn't like utf8
Copy Output