Using promises instead of callbacks throughout KeyEncryptor maintains code style more effectively. It centralizes error-handling logic so that the program flow is easier to understand. Also, it has hardly any impact on other parts of the application, because callbacks can be translate to promises with a 5 character change.
I understand this change could be construed as opinionated, so I'm not 100% confident in it being merged.
Using promises instead of callbacks throughout KeyEncryptor maintains code style more effectively. It centralizes error-handling logic so that the program flow is easier to understand. Also, it has hardly any impact on other parts of the application, because callbacks can be translate to promises with a 5 character change.
I understand this change could be construed as opinionated, so I'm not 100% confident in it being merged.