void () { IoTestUtil.assumeWindows(); byte[] data = new byte[256]; new Random().nextBytes(data); byte[] encrypted = WindowsCryptUtils.protect(data); assertFalse(Arrays.equals(data, encrypted)); byte[] decrypted = WindowsCryptUtils.unprotect(encrypted); assertArrayEquals(data, decrypted); }