Shawn
07/13/2018, 5:48 AMhmac.digest(key, message, digest)
whereas we have to directly manipulate hasher instance state and can’t even get a hex representation of digests without converting the byte[]
ourselves or using Guava or Apache Commons to avoid leaky abstractionsgildor
07/13/2018, 5:58 AMwithout converting theYou can write a single extension that converts byte array to hex, nothing in stdlib or Java for more high levelourselvesbyte[]
Shawn
07/13/2018, 6:11 AMgildor
07/13/2018, 6:16 AMgildor
07/13/2018, 6:16 AMShawn
07/13/2018, 6:18 AMShawn
07/13/2018, 6:19 AMgildor
07/13/2018, 6:20 AMgildor
07/13/2018, 6:20 AMgildor
07/13/2018, 6:20 AMgildor
07/13/2018, 6:21 AMByteArray.toHex(): String
would be usefulShawn
07/13/2018, 6:21 AMgildor
07/13/2018, 6:23 AMdigest
functionShawn
07/13/2018, 6:25 AMgildor
07/13/2018, 6:26 AMShawn
07/13/2018, 6:26 AMShawn
07/13/2018, 6:27 AMkotlinx.crypto
, to mirror how it’s handled in Javagildor
07/13/2018, 6:30 AMnapperley
07/13/2018, 7:53 AMgildor
07/13/2018, 7:53 AMgildor
07/13/2018, 7:55 AMnapperley
07/13/2018, 7:55 AMgildor
07/13/2018, 8:18 AMVsevolod Tolstopyatov [JB]
07/13/2018, 9:31 AM