handle close instead of error event
add logging util
add logging util
fix encryptor is null
fix encryptor is null
add more log
fix typo
fix typo
fix typo
fix typo
fix to_buffer
bytes_to_key only once
bump version
bump version