Open mitar opened 8 months ago
Oh, that could be done with generics probably in a backwards compatible way. And most of the time Go runtime would just detect the correct type.
Another issue with string is that strings are immutable, so it is tricky to wipe them from memory. See here for more information.
I have my password already as
[]byte
. It feels to me a bit silly to have to convert it tostring
just that thenCreateHash
calls converts it back to[]byte
again.Should this package provider byte variants of
CreateHash
and others? It has been recently tagged 1.0.0 so probably it is too late to change this now in existing functions.