title: RNCryptor is not decrypting in iOS
body: <p>I am using <strong>RNCryptor</strong> in my application. I generated an encrypted string for a plain text using a password and when I try to decrypt the encrypted string using a password, it does not give me the original plain text instead it gave me some random string.</p>
  
  <p>I guess I am missing something in string encoding/decoding but I am not sure what I am missing here.</p>
  
  <p>Can you please guide me to fix this?</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>func encrypt(plainText : String, password: String) -&gt; String {
      let data: Data = plainText.data(using: .utf8)!
      let encryptedData = RNCryptor.encrypt(data: data, withPassword: password)
      let encryptedString : String = encryptedData.base64EncodedString(options: Data.Base64EncodingOptions.lineLength76Characters)
      return encryptedString
  }
  
  func decrypt(encryptedText : String, password: String) -&gt; String {
      do  {
  
          let data: Data = Data.init(base64Encoded: encryptedText, options: NSData.Base64DecodingOptions.ignoreUnknownCharacters)!
  
          let decryptedData = try RNCryptor.decrypt(data: data, withPassword: password)
          let decryptedString : String = decryptedData.base64EncodedString(options: Data.Base64EncodingOptions.lineLength76Characters)
          return decryptedString
  
      }
      catch {
          return "FAILED"
      }
  }
  
   let plainText = "123456789"
   let password = "ABCDEFGHIJ"
  
   let encryptedText =  self.encrypt(plainText: plainText, password: password)
   let decryptedText = self.decrypt(encryptedText: encryptedText, password: password)
  
   print("ENCRYPTED TEXT : \(encryptedText)")
   print("DECRYPTED TEXT : \(decryptedText)")
  </code></pre>
  
  <blockquote>
    <p>ENCRYPTED TEXT : AwEsB6wlUSIJ31TAbaeAjVXP272zW89aa2rR9v6zYWwKUf6Hs5GSHekMKQT+n0vw6jMtjsQVhtzO
    8AcqGpTLrQ9YR0PUS07P+8HboCp6Ge8UxQ==</p>
    
    <p>DECRYPTED TEXT : MTIzNDU2Nzg5</p>
  </blockquote>