stringDigest

open fun stringDigest(data: String, algorithm: String): String

Method to get digest

Return

digest result as String

Parameters

data

: data to digest as String

algorithm

: algorithm used in signature -> MD5,SHA-1 or SHA-256


open fun stringDigest(data: Array<Byte>, algorithm: String): String

Method to get digest

Return

digest result as String

Parameters

data

: data to digest as byte array

algorithm

: algorithm used in signature -> MD5,SHA-1 or SHA-256