base64Digest

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

Method to get digest

Return

digest result as String in Base64 encode

Parameters

data

: data to digest as String

algorithm

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


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

Method to get digest

Return

digest result as String in Base64 encode

Parameters

data

: data to digest as byte array

algorithm

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