title: Swift - encrypted realm db can still be accessed without key
body: <p>I probably do not understand the encryption of Realm propably and hope someone can help. </p>
  
  <p>I created a Realm database with encryption according to this example: <a href="https://github.com/realm/realm-cocoa/blob/master/examples/ios/swift-2.0/Encryption/ViewController.swift" rel="nofollow noreferrer">https://github.com/realm/realm-cocoa/blob/master/examples/ios/swift-2.0/Encryption/ViewController.swift</a></p>
  
  <pre><code> let configuration = Realm.Configuration(encryptionKey: "31234567890123456789012345678901234567890123456789012345678901234".dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false))
   let realm = try! Realm(configuration: configuration)
  </code></pre>
  
  <p>However after I run my script I can still access &amp; change the Realm file in Realm browser. I expected that the Realm file is encrypted and users cannot read the realm file without decrypting it with the correct password. </p>
  
  <p>I already read question "<a href="https://stackoverflow.com/questions/32718005/swift-realm-db-encryption-not-working">SWIFT - Realm db encryption not working</a>" but it did not answer my question. </p>
  
  <p>How can I protect my realm file that nobody can read/write Objects from and to it without knowing the encryption key ?</p>
  
  <p>Thanks,
  Tim</p>