let staticSalt = "com.example.mygreatapp"
let userSalt = "b...@example.org"
let salt = (staticSalt + userSalt).data(using: String.Encoding.utf8)
let kDerivationSettings = RNCryptorKeyDerivationSettings(keySize: 32, saltSize: 8, PBKDFAlgorithm: 2, PRF: 3, rounds: 10000, hasV2Password: false)
let password = "SomethingTheUserTyped"
let hash = RNCryptor.key(forPassword: password, salt: salt, settings: kDerivationSettings)
let hashS = String(data: hash!, encoding: String.Encoding.utf8)
Any help would be greatly appreciated.