Refactor: replace deprecated 'binary' encoding with Buffer
As per the Node.js documentation, 'binary' encoding is outdated and can lead to unexpected behavior or data loss.
- Replaced deprecated 'binary' string encoding with direct Buffer operations for data key handling.
- The encrypt method now passes the dataKey buffer directly to crypto.update.
- The decrypt method now correctly reconstructs the dataKey using Buffer.concat.
This improves code quality and future compatibility without altering the cryptographic logic.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
Hello everyone, could someone please take a look at this PR on deprecated 'binary' string encoding, or point me to the right reviewer?