[guardian-dev] cacheword usage
mex at di.unipmn.it
Wed May 25 05:21:35 EDT 2016
I'm wondering if the following code is right in order to create a
secretkey with cacheword and if this key is directly used by chatsecure
to encrypt a DB with SQLCipher. From my test, it seems that I'm missing
I hope you can help me.
After my signature, the code used. The question is: is x_rawSecretKey
the right key to use with SQLCipher?
String encodedSecret =
String passphrase = "mypassword2016";
char x_passphrase = passphrase.toCharArray();
byte preparedSecret =
SerializedSecretsV1 ss = new
byte x_rawSecretKey = null;
PassphraseSecretsImpl crypto = new PassphraseSecretsImpl();
*x_rawSecretKey* = crypto.decryptWithPassphrase(x_passphrase,ss);
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the guardian-dev