privacy Privacy Why every TOTP app default uses SHA-1 hash encryption?
Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTO
    totikom
    5 months ago 100%

    First of all, let's recap how TOTP works: your authenticator app stores "TOTP password" in an accessible way (some apps store it plaintext, Aegis stores them in an encrypted DB. They can also be stored on Yubikey.). To generate one time code, the app takes the password, concatenates it with current time rounded to 30 seconds and compute a hash from this string.

    The resulting hash is used to create a 6 digit code, that you'll enter on login.

    To check the code, server repeats the same procedure and compare your result with the just generated one.

    As you can see, for this system to work you and the server must use the same hash function.

    Conclusion: 1)Hash function in TOTP has nothing to do with password storage, it is used only for TOTP-code generation. 2) Cryptographic security of the hash function is not much a concern here: TOTP code expose an extremely low amount of information about TOTP password, so to reliably recover the password from TOTP-codes you'll have to intercept millions of them.

    18
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    Compilers totikom 5 months ago 100%
    Interview with Vadim Zaytsev - Beyond Parsing beyondparsing.com

    [Dr. Vadim Zaytsev](http://grammarware.net/) a very famous researcher among insiders in the area of software renovation somewhat recently gave an interview to Federico Tomassetti a pretty famous software consultant in the narrow circles of DSL development and legacy systems migrations. (Taken from https://t.me/al_tch)

    3
    0
    privacy Privacy What VPN are you using?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTO
    totikom
    5 months ago 100%

    Geph were not mentioned yet. It will likely not solve the problem mentioned by OP, but it is VERY censorship resistant.

    2
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearNI
    nixos totikom 5 months ago 90%
    Installing Nix behind MITM-proxy https://totikom.github.io/blog/nix-install/
    8
    0