19 releases (6 breaking)

0.7.0-alpha.0 Nov 5, 2024
0.6.0 Jul 13, 2024
0.4.2 Mar 30, 2024
0.1.2 Dec 31, 2023

#161 in Asynchronous

Download history 53/week @ 2024-08-15 76/week @ 2024-08-22 212/week @ 2024-08-29 89/week @ 2024-09-05 67/week @ 2024-09-12 37/week @ 2024-09-19 44/week @ 2024-09-26 35/week @ 2024-10-03 33/week @ 2024-10-10 31/week @ 2024-10-17 28/week @ 2024-10-24 132/week @ 2024-10-31 82/week @ 2024-11-07 72/week @ 2024-11-14 45/week @ 2024-11-21 10/week @ 2024-11-28

246 downloads per month
Used in 5 crates (4 directly)

LGPL-3.0-or-later

135KB
3K SLoC

Decrypt Cookies

Example

use decrypt_cookies::{Browser, ChromiumBuilder};

#[tokio::main]
async fn main() -> miette::Result<()> {
    let chromium = ChromiumBuilder::new(Browser::Chromium)
        .build()
        .await?;
    let all_cookies = chromium.get_cookies_all().await?;

    dbg!(&all_cookies[0]);

    let jar: reqwest::cookie::Jar = all_cookies
        .into_iter()
        .collect();

    Ok(())
}

To add new

ChromiumBase

  • ./src/browser/info.rs ChromiumInfo trait, safe_name, storage method, modify and impl.

FirefoxBase

  • ./src/browser/info.rs FfInfo trait, modify and impl.

TODO

  • Decrypt passwd etc.

TEST STATUS

[!NOTE]

These are the latest status updates, not the released status. Please check out the newest tag for the released status.

  • Linux:
Browser Cookies passwd Test Date
Firefox πŸ”‘ 🚫 2024-04-1
Librewolf πŸ”‘ 🚫 2024-04-1
Chrome πŸ”‘ πŸ”‘ 2024-04-1
Edge πŸ”‘ πŸ”‘ 2024-04-1
Chromium πŸ”‘ πŸ”‘ 2024-04-1
Brave πŸ”‘ πŸ”‘ 2024-04-1
Yandex πŸ”‘ 🚫 2024-04-1
Vivaldi πŸ”‘ πŸ”‘ 2024-04-1
Opera πŸ”‘ πŸ”‘ 2024-04-1
  • Windows:
Browser Cookies passwd Test Date
Firefox πŸ”‘ 🚫 2024-04-1
Librewolf πŸ”‘ 🚫 2024-04-1
Chrome πŸ”‘ πŸ”‘ 2024-04-1
Edge πŸ”‘ πŸ”‘ 2024-04-1
Chromium πŸ”‘ πŸ”‘ 2024-04-1
Brave πŸ”‘ πŸ”‘ 2024-04-1
Yandex πŸ”‘ 🚫 2024-04-1
Vivaldi πŸ”‘ πŸ”‘ 2024-04-1
Opera πŸ”‘ πŸ”‘ 2024-04-1
OperaGX πŸ”‘ πŸ”‘ 2024-04-1
CocCoc πŸ”‘ πŸ”‘ 2024-04-1
Arc 🚫(not support) 🚫
  • Macos:
Browser Cookies passwd Test Date
Firefox πŸ”‘ 🚫 2024-04-1
Librewolf πŸ”‘ 🚫 2024-04-1
Chrome πŸ”‘ πŸ”‘ 2024-04-1
Edge πŸ”‘ πŸ”‘ 2024-04-1
Chromium πŸ”‘ πŸ”‘ 2024-04-1
Brave πŸ”‘ πŸ”‘ 2024-04-1
Yandex πŸ”‘ 🚫 2024-04-1
Vivaldi πŸ”‘ πŸ”‘ 2024-04-1
Opera πŸ”‘ πŸ”‘ 2024-04-1
OperaGX πŸ”‘ πŸ”‘ 2024-04-1
CocCoc πŸ”‘ πŸ”‘ 2024-04-1
Arc 🚫(not test) 🚫
safari πŸ”‘ 🚫 2024-04-1

Credits

Dependencies

~40–86MB
~1.5M SLoC