comparison src/luan/modules/Binary.luan @ 1649:f7e2df85fc0a

add String.digest_message
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 29 Mar 2022 16:07:01 -0600
parents 70a55f49b98e
children
comparison
equal deleted inserted replaced
1648:224af797b1f9 1649:f7e2df85fc0a
8 8
9 Binary.base64_decode = Base64.getDecoder().decode 9 Binary.base64_decode = Base64.getDecoder().decode
10 Binary.base64_encode = Base64.getEncoder().encodeToString 10 Binary.base64_encode = Base64.getEncoder().encodeToString
11 Binary.binary = BinaryLuan.binary 11 Binary.binary = BinaryLuan.binary
12 Binary.byte = BinaryLuan.byte_ 12 Binary.byte = BinaryLuan.byte_
13 Binary.digest_message = BinaryLuan.digest_message
14 Binary.to_hex = BinaryLuan.to_hex
13 Binary.to_string = BinaryLuan.to_string 15 Binary.to_string = BinaryLuan.to_string
14 16
15 function Binary.digest_message(algorithm,input)
16 return MessageDigest.getInstance(algorithm).digest(input)
17 end
18
19 return Binary 17 return Binary