let ciphertext = RNCryptor.encrypt(data: testString.data(using:
String.Encoding.utf8)!, withPassword: password)
print(ciphertext)
Zurück zur string:
var backToString = String(data: ciphertext, encoding:
String.Encoding.utf8) as String!
print(backToString)
Sie vor der Konvertierung in einen String RNCryptor.decrypt zuerst sollten. – koropok