To do so on a Mac, follow these steps (which should be easy if you’re familiar with the command line). It’s not 100% safe, it can still be brute forced and you probably shouldn’t be sending your banking details like this, but it can be useful to send along information this way.
If you want to send someone a file of which the content you prefer to remain anonymous, you can send it in a password protected ZIP file.