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 56/week @ 2024-08-14 75/week @ 2024-08-21 208/week @ 2024-08-28 87/week @ 2024-09-04 74/week @ 2024-09-11 36/week @ 2024-09-18 37/week @ 2024-09-25 37/week @ 2024-10-02 41/week @ 2024-10-09 28/week @ 2024-10-16 30/week @ 2024-10-23 98/week @ 2024-10-30 112/week @ 2024-11-06 68/week @ 2024-11-13 52/week @ 2024-11-20 14/week @ 2024-11-27

316 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–90MB
~1.5M SLoC