public void key(String skey) throws SQLite.Exception {
synchronized (this) {
    byte ekey[]=null;
    if (skey != null && skey.length() > 0) {
      ekey=new byte[skey.length()];
      for (int i=0; i < skey.length(); i++) {
        char c=skey.charAt(i);
        ekey[i]=(byte)((c & 0xff) ^ (c >> 8));
      }
    }
    _key(ekey);
  }
}

public void key ( String skey ) throws SQLite . Exception { synchronized ( this ) { byte ekey [ ] = null ; if ( skey != null && skey . length ( ) > 0 ) { ekey = new byte [ skey . length ( ) ] ; for ( int i = 0 ; i < skey . length ( ) ; i ++ ) { char c = skey . charAt ( i ) ; ekey [ i ] = ( byte ) ( ( c & 0xff ) ^ ( c > > 8 ) ) ; } } _key ( ekey ) ; } }
specify key for encrypted database . to be called right after open ( ) on sqlite3 databases . not available in public releases of sqlite .
