Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TOTP 100% qb64 Yup - sorta LOL
#5
(06-02-2025, 08:23 PM)Ra7eN Wrote: Hey thanks man, seriously appreciate the time you took here. Your breakdown’s sharp and definitely shows the kind of detail this stuff needs. I’m gonna dig through the functions you posted — especially the bit/hex converters and that reverse CVL/CVI64 trick — those look like they might simplify some of the chaos I was running into with endianness and raw buffer parsing in my version.
Just curious though: would this be compatible with a self-contained TOTP function if I sub in SHA1 instead of SHA256? From what I’ve seen, the TOTP standard still relies on HMAC-SHA1 by default (I know SHA256 is an option but it's not default). Did you get your SHA256 version working for time-based codes yet, or are you thinking it could be ported?
Also side note, I totally agree — doing this from scratch in QB64 is half-pain, half-fun. But I come here when I’m stuck deep because y’all make it less painful ?
I also ran in this reverseCVL issue a year ago when I was working on the previous version of SHA256...
This SHA256 is working correctly, and it can be used for TOTP.

(06-02-2025, 08:45 PM)Ra7eN Wrote: if you're curious what the beta looks like, you can grab it here.

Yes, I’m a total L.O.R.D. obsessive — I’ve built versions in Pascal, QB64, and PHP — and now I wanted a PWM that actually fits me. This one’s close to flawless, though a few things still need ironing out.

2FA is working (TOTP is handled externally via a Python EXE in the py folder)
Currently compiled for Windows 10 — not tested on Win7 or Linux yet
Encryption is... okay. It's offline and for personal use, so it’s good enough for now.

Next up, need help with an AES clone (or close to it), so if anyone has code ideas for that, I’m all ears. Right now, the so-so security is tied to the user.

Sorry if this post is out of place — just excited to show what I’ve been building and where it’s headed and any complex security help - if removed I get it LOL!

https://www.mediafire.com/file/0fgxho0qz...b.zip/file
I have an AES clone attached here, which I use in a password manager...
It is not perfectly AES, but similar to it.


Attached Files
.zip   aes_clone.zip (Size: 1.81 KB / Downloads: 7)
Reply


Messages In This Thread
TOTP 100% qb64 Yup - sorta LOL - by Ra7eN - 06-02-2025, 05:51 PM
RE: TOTP 100% qb64 Yup - sorta LOL - by Ra7eN - 06-02-2025, 08:23 PM
RE: TOTP 100% qb64 Yup - sorta LOL - by Ra7eN - 06-02-2025, 08:45 PM
RE: TOTP 100% qb64 Yup - sorta LOL - by aadityap0901 - 06-03-2025, 05:40 AM
RE: TOTP 100% qb64 Yup - sorta LOL - by Ra7eN - 06-03-2025, 05:26 PM
RE: TOTP 100% qb64 Yup - sorta LOL - by Ra7eN - 06-03-2025, 12:00 PM
RE: TOTP 100% qb64 Yup - sorta LOL - by Jack - 06-03-2025, 07:10 PM
RE: TOTP 100% qb64 Yup - sorta LOL - by Ra7eN - 06-04-2025, 04:38 PM



Users browsing this thread: 1 Guest(s)