19 releases (6 breaking)

new 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

#124 in Authentication

Download history 23/week @ 2024-07-15 218/week @ 2024-07-22 67/week @ 2024-07-29 25/week @ 2024-08-05 82/week @ 2024-08-12 58/week @ 2024-08-19 222/week @ 2024-08-26 76/week @ 2024-09-02 93/week @ 2024-09-09 19/week @ 2024-09-16 50/week @ 2024-09-23 36/week @ 2024-09-30 34/week @ 2024-10-07 39/week @ 2024-10-14 19/week @ 2024-10-21 33/week @ 2024-10-28

127 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