Meshtastic App
Toggle table of contents
android
Target filter
android
Switch theme
Search in API
Skip to content
Meshtastic App
feature-firmware
/
org.meshtastic.feature.firmware.ota
/
FirmwareHashUtil
/
calculateSha256Bytes
calculate
Sha256Bytes
android
fun
calculateSha256Bytes
(
file
:
File
)
:
ByteArray
(
source
)
Calculate SHA-256 hash of a file as a byte array.
Return
32-byte SHA-256 hash
Parameters
file
Firmware file to hash