Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add desktop apps #165

Closed
technozz opened this issue Jul 22, 2019 · 21 comments
Closed

Add desktop apps #165

technozz opened this issue Jul 22, 2019 · 21 comments

Comments

@technozz
Copy link

technozz commented Jul 22, 2019

Add support for desktop apps in Windows, Linux, Chrome apps and Mac

@alexbakker
Copy link
Member

We don't have plans to port Aegis to other platforms.

@jidanni
Copy link

jidanni commented Apr 9, 2020

Well once #138 is implemented among many apps, you could export your keys from Aegis to some other app running on your desktop.

@fiorins
Copy link

fiorins commented Aug 7, 2022

Something has changed since three years ago about a Windows/MacOS/web app of Aegis ?

@alexbakker
Copy link
Member

No.

@PatRiot1337
Copy link

Well once #138 is implemented among many apps, you could export your keys from Aegis to some other app running on your desktop.

@jidanni Which other apps running on your desktop are there and can you recommend?

@jidanni
Copy link

jidanni commented Sep 5, 2022

(I recall I made an homebrew Perl program from some modules I found; however my desktop is far away at the moment.)

@PatRiot1337
Copy link

(I recall I made an homebrew Perl program from some modules I found; however my desktop is far away at the moment.)

Uh, I meant recommendations for MY desktop ;) so an 2FA-App for desktop.

@jidanni
Copy link

jidanni commented Sep 7, 2022

Well mine is just a sloppy Linux command line shell script... I mean Perl script.

#1269 (comment)

I mean for desktop how about just a CLI script. No fancy graphics. Not even "curses".

@oviliz
Copy link

oviliz commented Sep 20, 2023

Shame we can't get this on iOS though... just changed from Android to an iPhone to find out that I couldn't get Aegis on iOS... :(

@war59312
Copy link

war59312 commented Feb 10, 2024

While no official app exists, you can use the Andriod App on Windows using the Windows Subsystem for Android.

In 10 easy steps, hello beautiful! 🥇

1.) Install Windows Subsystem for Android: https://www.androidpolice.com/set-up-wsa-windows-11-android-apps/

2.) Enable developer mode and share user folders (and probably want local network access) in Windows Subsystem for Android under Advanced Settings.

3.) Restart Windows Subsystem for Android to enable file sharing: https://www.elevenforum.com/t/restart-windows-subsystem-for-android-wsa-in-windows-11.12301/

4.) Download WSA Sideloader from the Microsoft Store.

5.) Download and install the Aegis APK using WSA Sideloader from the Microsoft Store.

Congrats, Aegis is now installed.

Now you need to get your sweet codes into Aegis.

6.) I found that oddly I could not import the default Aegis file format when exported from my Galaxy S24+ phone. I had to export it as a plain text file. Fun. So yeah export your Aegis codes from your phone as a text file.

7.) Open the newly installed Amazon Appstore from your Windows start menu and Download and install X-plore .

8.) Use X-plore to copy the Aegis APK to the Windows Subsystem for Android. I suggest copying to the Downloads folder to make life easy. Temp anyways, as you can delete the export when done.

9.) Import your Aegis codes as a plain text file.

10.) Hello, beautiful codes. 💯

@MaximilianKohler
Copy link

I also think a desktop app is important to have as a backup if something goes wrong with your phone.

Here's what I found:

Doing it manually with KeepassXC seems to be the only portable option.

Tauthy https://github.com/pwltr/tauthy - recommended at #1004 may be the next best thing. I haven't tried it.

@chaoscreater
Copy link

I also think a desktop app is important to have as a backup if something goes wrong with your phone.

Here's what I found:

Doing it manually with KeepassXC seems to be the only portable option.

Tauthy https://github.com/pwltr/tauthy - recommended at #1004 may be the next best thing. I haven't tried it.

I haven't looked into others, but 2fast is technically portable. You can choose to use a webdav server to store your data file and so you could have 2fast running on multiple PCs, pointing to the same webdav file. Alternatively, you can create a local backup of your data file and you can just place that in a Dropbox or OneDrive folder, which is synced. When you switch PC, it'll just be picked up by the sync.

Anyway, I think it's a missed opportunity for the Aegis team to not make a desktop version. I chose Authy because it was the only app that was cross platform. I'm well aware that you can get 2FA Android apps running on Windows using WSL, or even using Android mirroring with scrcpy or something else. But I needed a proper, native Windows app, so that my automation would work. I developed my own Autohotkey script for quickly grabbing the OTP code from Authy Desktop and enter that into any app. I can press certain hotkey combinations (e.g. CTRL+SHIFT+1, CTRL+SHIFT+2....) and it will pick the correct Authy 2FA code and use that. It worked great and the execution is extremely fast, much faster than having to switch to your phone screen (whether manually or whether via emulator or WSL for Android or whatever). It was always less than a second to do that, it's the quickest approach of all. I'm sure I can port this script easily to another desktop app, but the problem is trying to find a good replacement for Authy Desktop.

@fiorins
Copy link

fiorins commented Feb 14, 2024

Why Aegis is in the credits section of Tauthy repo, was it developed by the Aegis team ?

@alexbakker
Copy link
Member

@fiorins Probably because its design is seemingly inspired by Aegis. Tauthy was not developed by us.

@MaximilianKohler
Copy link

Anyway, I think it's a missed opportunity for the Aegis team to not make a desktop version. I chose Authy because it was the only app that was cross platform.

Same. It would be great if Aegis and Tauthy could work together and either merge their projects or make them seamlessly integrable.

Since I don't create new 2FA accounts often, the KeepassXC manual method works well enough for me for now.

@Granddave
Copy link
Contributor

Hi all, I've written a lean CLI utility that uses the encrypted backup file that's exported from Aegis to generate the OTP codes.
Please check it out if it sounds interesting.

https://github.com/Granddave/aegis-rs

@katastrophe92
Copy link

Let's image this: Aegis for all OS's + Browser extension + cloud sync. Mmmm yeah soo nice😋 That would be the BEST 2FA app.

@war59312
Copy link

war59312 commented Mar 6, 2024

FYI, the Andriod option I posted about probably won't work next year and beyond :(

https://www.tomshardware.com/software/windows/microsoft-is-killing-windows-11s-android-emulator-no-one-will-miss-it

@ntnguyen1234
Copy link

ntnguyen1234 commented Mar 30, 2024

Update: Currently aegis-rs is the only one that works directly with encrypted JSON for me.


Sorry, anybody has a solution of importing encrypted JSON on Windows 10?

I'm really stuck here. I don't really need to use 2FA on desktop, but at least a single backup approach in emergency case which I cannot use android, that's NOT manually import one-by-one like Keepass. And also since Aegis only supports automatic backup with encrypted JSON, I can't have un-encrypted one in my backup storage either.

For example, I will call encrypted one as encrypted.json, the one decrypted by decrypt.py as decrypted.json and the plain un-encrypted exported from android app is plain.json (this one is not in my backup storage).

  • Tauthy: cannot import encrypted.json and when I import decrypted.json, nothing happens either. Looks like it needs plain.json,
  • 2fast: cannot import any JSON files,
  • Protecc: cannot import any JSON files,
  • aegis-rs: I'm having this issue here Fixed here chore: Bump vault utils to fix supported vault version Granddave/aegis-rs#10
  • pass-import: I installed via pip install pass-import but I don't know which command I should run next. I tried a simple one pimport csv aegis encrypted.json -o plain.csv and it shows error encrypted.json is not a valid exported aegis file.
  • Android emulator: I mean... seriously, I need a whole OS emulator to import that file? And I'm not sure about their privacy and security when installing them either.

Honestly, I feel so stuck right now. I'm having the backup file sitting on the desktop, and I don't know what to do with it.


Ok, I can export the decrypted.json to decrypted.csv via pass-import

pimport csv aegis decrypted.json -o decryped.csv

And now I have another csv file on my computer with details like this

comments,email,group,login,otpauth,password,title,url
,,,,otpauth://totp/totp-secret?secret=SECRET_KEY

What should I do now with it?


Ok, if I edit decrypt.py the last lines from

if args.output != "-":
    with io.open(args.output, "w") as f:
        f.write(db)
else:
    print(db)

to

output_db = {"version": 1, "header": {"slots": None, "params": None}, "db": json.loads(db)}
if args.output != "-":
    with io.open(args.output, "w") as f:
        json.dump(output_db, f, indent=4)
else:
    print(output_db)

The decrypted.json file will match the format of the un-encrypted plain.json exported from Aegis app, then you can import it to Tauthy. There's an inconsistency in format between the decrypt script and the export util on the app.

Still sad that there's no way to import encrypted one directly, but we need to decrypt it to plain JSON first.


aegis-rs is working again :)

@scollovati
Copy link

@ntnguyen1234 I've created this Python project https://github.com/scollovati/Aegis-decrypt that allows to decrypt the Aegis vault and export its values in different formats (QR Codes with provisioning URIs included). Also it allows to generate TOTP codes on the fly. Some improvements and new formats are "in progress".

@Sammy-T
Copy link

Sammy-T commented Jul 11, 2024

If anyone's still interested, I created a desktop app that reads Aegis vault files and generates TOTP codes: https://github.com/Sammy-T/avda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests