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)
print(hash)
let hashS = String(data: hash!, encoding: String.Encoding.utf8)
hashS is nil.
any help would be greatly appreciated.
--
You received this message because you are subscribed to the Google Groups "rncryptor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rncryptor+...@googlegroups.com.
Visit this group at https://groups.google.com/group/rncryptor.
For more options, visit https://groups.google.com/d/optout.