itinance / react-native-sha256

sha256 natively for react-native
MIT License
99 stars 50 forks source link

Add methods to get the hash of a byte array #57

Closed bdpdx closed 1 year ago

bdpdx commented 1 year ago

The existing string methods use strlen() under the hood and thus cannot handle binary strings with zero (0x00) bytes in the data.

This pull request adds the ability to take the hash of a Uint8Array.

itinance commented 1 year ago

Thank you!