I am trying to use libsodium for symmetric encryption on Android. In order to get libsodium on android, I am using this binding library.
I am struggling to find the proper way to derive a key from a (low entropy/user chosen) password. There is plenty of reference online to the PBKDF2 and SCrypt algorithms. SCrypt in particular looks like it is included as part of libsodium, but I cannot figure how to use it through the binding above. Should I add a separate library just for the key derivation function? This would work but I would prefer not to add another lib just for that if not necessary. Should I be using java's SecretKeyFactory?
If anyone has implemented symmetric encryption on android before with libsodium and could provide an example or guidance, it would be appreciated. Thanks.