Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us
Notesclub

Explore the Windows Data Protection API from Elixir

demo.livemd

Explore the Windows Data Protection API from Elixir

Mix.install([
  {:ex_windows_api_dataprotection, "~> 0.1.1"}
])

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()