use of com.keepassdroid.database.load.ImporterV4 in project KeePassDX by Kunzisoft.
the class Kdb4 method testParsing.
public void testParsing() throws IOException, InvalidDBException {
Context ctx = getContext();
AssetManager am = ctx.getAssets();
InputStream is = am.open("test.kdbx", AssetManager.ACCESS_STREAMING);
ImporterV4 importer = new ImporterV4();
importer.openDatabase(is, "12345", null);
is.close();
}
use of com.keepassdroid.database.load.ImporterV4 in project KeePassDX by Kunzisoft.
the class Kdb4 method testNoGzip.
public void testNoGzip() throws IOException, InvalidDBException {
Context ctx = getContext();
AssetManager am = ctx.getAssets();
InputStream is = am.open("no-encrypt.kdbx", AssetManager.ACCESS_STREAMING);
ImporterV4 importer = new ImporterV4();
importer.openDatabase(is, "12345", null);
is.close();
}
use of com.keepassdroid.database.load.ImporterV4 in project KeePassDX by Kunzisoft.
the class Kdb4Header method testReadHeader.
public void testReadHeader() throws Exception {
Context ctx = getContext();
AssetManager am = ctx.getAssets();
InputStream is = am.open("test.kdbx", AssetManager.ACCESS_STREAMING);
ImporterV4 importer = new ImporterV4();
PwDatabaseV4 db = importer.openDatabase(is, "12345", null);
assertEquals(6000, db.numKeyEncRounds);
assertTrue(db.dataCipher.equals(AesEngine.CIPHER_UUID));
is.close();
}
use of com.keepassdroid.database.load.ImporterV4 in project KeePassDX by Kunzisoft.
the class SprEngineTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
Context ctx = getContext();
AssetManager am = ctx.getAssets();
InputStream is = am.open("test.kdbx", AssetManager.ACCESS_STREAMING);
ImporterV4 importer = new ImporterV4();
db = importer.openDatabase(is, "12345", null);
is.close();
spr = new SprEngineV4();
}
Aggregations