google_authenticator_converter

Crates.iogoogle_authenticator_converter
lib.rsgoogle_authenticator_converter
version0.2.0
sourcesrc
created_at2023-03-07 15:59:34.535434
updated_at2023-03-08 16:04:05.430049
descriptionExtract name, secret and issuer from a Google Authenticator migration QR code
homepage
repositoryhttps://github.com/Levminer/authme/tree/dev/core/crates/google_authenticator_converter
max_upload_size
id803738
size36,377
LÅ‘rik Levente (Levminer)

documentation

README

google_authenticator_converter

  • Extract name, secret and issuer from a Google Authenticator migration QR code

Example

    use google_authenticator_converter::{extract_data_from_uri, process_data, Account};

    let qr_code = "otpauth-migration://offline?data=CjMKCkhlbGxvId6tvu8SGFRlc3QxOnRlc3QxQGV4YW1wbGUxLmNvbRoFVGVzdDEgASgBMAIKMwoKSGVsbG8h3q2%2B8BIYVGVzdDI6dGVzdDJAZXhhbXBsZTIuY29tGgVUZXN0MiABKAEwAgozCgpIZWxsbyHerb7xEhhUZXN0Mzp0ZXN0M0BleGFtcGxlMy5jb20aBVRlc3QzIAEoATACEAEYASAAKI3orYEE";

    let accounts = process_data(&qr_code);

    for account in accounts.unwrap() {
        println!("{0} {1} {2}", account.name, account.secret, account.issuer);
    }

Based on

google-authenticator-extractor

Commit count: 0

cargo fmt