pwbox

pwbox is a library similar to NaCl/libsodium's built-in secretbox, only it implements encryption based on passwords rather on secret keys.

May be arbitrary, but ASCII chars are preferred because of possible Unicode shenanigans.

More options

Encryption options with reasonable defaults.

bytes encoded as hex. Leave empty to use randomly generated salt.
Operations limit on password hashing. More means more secure, but slower.
Memory limit on password hashing. More means more secure, but slower.