# Androd SQLCipher

**URL:** <https://discuss.zetetic.net/t/androd-sqlcipher/1467>\
**Category:** SQLCipher\
**Created:** [June 24, 2016, 11:10am UTC](https://discuss.zetetic.net/t/androd-sqlcipher/1467 "2016-06-24T11:10:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![coolwd10](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@coolwd10](https://discuss.zetetic.net/u/coolwd10)\
**Post date:** [June 24, 2016, 11:10am UTC](https://discuss.zetetic.net/t/androd-sqlcipher/1467/1 "2016-06-24T11:10:37Z")

</div>

Hi,

I am using SQLCipher in Android. My Q is?  
1\>Is any limitation in password length?  
2\>Is any special charter in password not supported by SQLCipher?

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [June 24, 2016, 1:46pm UTC](https://discuss.zetetic.net/t/androd-sqlcipher/1467/2 "2016-06-24T13:46:34Z")

</div>

Hi @coolwd10

The password you provide SQLCipher is transformed into a key via [PBKDF2](https://en.wikipedia.org/wiki/PBKDF2) which is used to encrypt and decrypt the data; it currently uses an iteration length of 64,000. The size of the computed key is defined by the cipher used, by default SQLCipher uses AES 256 in CBC mode, that is a 256 bit key. There should be no character limitation on the source password as PBKDF2 operates on the bytes of password.

---

<div class="post-metadata">

**Author:** ![coolwd10](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@coolwd10](https://discuss.zetetic.net/u/coolwd10)\
**Post date:** [June 24, 2016, 2:35pm UTC](https://discuss.zetetic.net/t/androd-sqlcipher/1467/3 "2016-06-24T14:35:55Z")

</div>

But prob i am facing… I am using password  
7a585167d0c68419testuser@smartapp.comhttps://v15testuser.TestUserBeta.com/

it encrypted db file properly.But when I open the db file passing password it not opening…

Same thing if I remvoed @ ,dot, and // then everything working f9.

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [June 24, 2016, 4:27pm UTC](https://discuss.zetetic.net/t/androd-sqlcipher/1467/4 "2016-06-24T16:27:30Z")

</div>

Hi @coolwd10

We just tried that scenario locally here with both the SQLCipher command line shell and SQLCipher for Android, both were able to open the database we created using the password example you provided. It appears you are concatenating data to create the password, if so, is it possible that some of your data, or your creation format has changed since the database was originally keyed?

---

<div class="post-metadata">

**Author:** ![coolwd10](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@coolwd10](https://discuss.zetetic.net/u/coolwd10)\
**Post date:** [June 27, 2016, 9:05am UTC](https://discuss.zetetic.net/t/androd-sqlcipher/1467/5 "2016-06-27T09:05:31Z")

</div>

Thanks for help…I will chk my code
