Example #1
0
  @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);
  }
Example #2
0
  @Test
  public void testDecryptItem() throws Exception {

    Item item = new Item("link", "login", "pass");
    Encrypter.decryptItem(Encrypter.encryptItem(item, password), password);
  }