View Source Explore the Windows Data Protection API from Elixir

Mix.install([
  {:ex_windows_api_dataprotection,
   git: "https://github.com/chgeuer/ex_windows_api_dataprotection.git", tag: "v0.1.0"}
])

Section

import Windows.API.DataProtection, only: [wrap: 1, unwrap: 1]

"Hello world"
|> wrap()
|> unwrap()
"#{System.get_env("USERPROFILE")}\\.azure\\msal_token_cache.bin"
|> File.read!()
|> Windows.API.DataProtection.unwrap()
|> IO.puts()