def METHOD_NAME():
    lib = Crypto()
    key = lib.generate_key()
    lib.use_encryption_key(key)
    text = "An example string\nWith some secret content"
    with temp_path(text.encode("utf-8")) as original:
        with temp_path(suffix=".bin") as encrypted:
            lib.encrypt_file(original, encrypted)
            result = lib.decrypt_file(encrypted)
            try:
                assert os.path.isfile(result)
                assert result.endswith(".dec.bin")
            finally:
                with contextlib.suppress(FileNotFoundError):
                    os.unlink(result)