Wrapper around the reference C implementation of Argon2.
Add the following line to your Podfile:
pod 'SignalArgon2CAlloc'
Install the pod with the a terminal at the same path as your Podfile:
pod install
Use it:
let (rawHash, encodedHash) = Argon2.hash(
iterations: 1,
memoryInKiB: 32 * 1024,
threads: 1,
password: password,
salt: salt,
desiredLength: 32,
variant: .id,
version: .v13
)