@Test public void testEncryptDecryptItem() throws Exception { Item item = new Item("link", "login", "pass"); Item encryptedItem = Encrypter.encryptItem(item, password); assertEquals(Encrypter.decryptItem(encryptedItem, password), item); }
@Test public void testDecryptItem() throws Exception { Item item = new Item("link", "login", "pass"); Encrypter.decryptItem(Encrypter.encryptItem(item, password), password); }