@Deprecated
    public Cipher encrypt() {
        try {
            Cipher cipher = Secret.getCipher(KEY_ALGORITHM);
            cipher.init(Cipher.ENCRYPT_MODE, getKey());
            return cipher;
        } catch (GeneralSecurityException e) {
            throw new AssertionError(e);
        }
    }
@Test
    public void multipleEncryptsAreIdempotent() throws Exception {
        byte[] str = "Hello world".getBytes(StandardCharsets.UTF_8);
        assertArrayEquals(key.encrypt().doFinal(str), key.encrypt().doFinal(str));
    }