cadenas
Encrypt a file with a password, right in your browser
...The same tool comes as a command line for Windows, macOS and Linux, a Docker image you can self-host, and a JavaScript library.
cadenas is free software (MIT) with a documented file format. It has not had an independent security audit yet; the threat model and format are public for review.