Currently the code sanity-checks e.g. Array (since it has a .length property) but silently doesn't send non-string/etc data.
I could probably move this around (and make encrypt() only take a Buffer) to reduce code reuse but that would involve fixing lots of tests. Let me know if that's preferred.
Currently the code sanity-checks e.g.
Array
(since it has a.length
property) but silently doesn't send non-string/etc data.I could probably move this around (and make
encrypt()
only take aBuffer
) to reduce code reuse but that would involve fixing lots of tests. Let me know if that's preferred.