Skip to content

ws1-framework/com.airwatch.crypto.openssl/OpenSSLCryptUtil/sha256Hash

sha256Hash

open fun sha256Hash(toHash: String): Array<Byte>

Generates a SHA256 hash of the input string.

Parameters

Name Description
toHash The string to be hashed

open fun sha256Hash(toHash: Array<Byte>): Array<Byte>

Generates a SHA256 hash of the input byte array.

Parameters

Name Description
toHash The byte array to be hashed

open fun sha256Hash(file: File): Array<Byte>

Generates a SHA256 hash of a file.

Parameters

Name Description
file The file to be hashed

Return

The SHA256 hash as a byte array

Return

The SHA256 hash as a byte array

Return

The SHA256 hash as a byte array, or null if an error occurs