frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Ask HN: Who is hiring? (July 2025)

164•whoishiring•7h ago•180 comments

Ask HN: Who wants to be hired? (July 2025)

49•whoishiring•7h ago•140 comments

1KB JavaScript Demoscene Challenge Just Launched

80•babakode•3h ago•16 comments

Ask HN: Anyone is an "AI Engineer"? What does your job tasks include?

5•akudha•1h ago•3 comments

Ask HN: What Are You Working On? (June 2025)

417•david927•2d ago•1312 comments

Ask HN: What's the 2025 stack for a self-hosted photo library with local AI?

210•jamesxv7•1d ago•110 comments

Ask HN: How do I open up my side project to the world?

4•picolas•5h ago•9 comments

Border search safe TOTP authenticator app?

9•jakedata•3h ago•11 comments

LinkedIn Locked Me Out Until I Submit to Biometric ID Verification via Persona

5•AllanSavageDev•5h ago•0 comments

It is not possible to install your own addon in Firefox without Moz's approval

3•julkali•5h ago•2 comments

Ask HN: Freelancer? Seeking freelancer? (July 2025)

53•whoishiring•7h ago•88 comments

Ask HN: Who's using AI to build non-AI products?

3•leonagano•11h ago•3 comments

Ask HN: Which skill do you believe will take the longest to be replaced by AI?

10•atleastoptimal•23h ago•30 comments

Ask HN: How have you shared computers with your young child (~3 to 5)

17•msencenb•1d ago•12 comments

Harsh Working Environment in Japan

8•wakuwakustudio•12h ago•9 comments

Ask HN: How to find developers interested in open-source concepts?

5•hejhdiss•15h ago•4 comments

Ask HN: 80s electronics book club; anyone remember this illustrator?

32•codpiece•3d ago•23 comments

Ask HN: Stock Android tablet free of bloatware?

10•miki_tyler•1d ago•4 comments

Ask HN: How did low contrast text become so pervasive?

21•mr-pink•1d ago•18 comments

Tell HN: Microsoft abruptly pulls plug on startup lifeline program

9•phren0logy•7h ago•4 comments

Ask HN: Which Free Software or Open Source Project Needs Help?

13•em-bee•1d ago•6 comments

Ask HN: Is noprocrast still working for you?

9•infotainment•1d ago•6 comments

Ask HN: Startup shutting down, should we open source?

14•amadeoeoeo•4d ago•36 comments

If macOS is so easy to use, why do I hate using it so much?

8•pcarroll•6h ago•8 comments

Tell HN: (dictionary|thesaurus).reference.com is now a spam site

51•akkartik•2d ago•13 comments

Ask HN: Is the header CSS broken for you?

45•LorenDB•1d ago•13 comments

Ask HN: Where do you host your Go apps

6•asim•1d ago•4 comments

Ask HN: Better-auth or Nextauth or something else

8•dasubhajit•3d ago•0 comments

Something 'deeper' than Emacs, or am I looking for a unicorn?

4•willschetelich•1d ago•7 comments

A reverse-delta backup strategy – obvious idea or bad idea?

12•datastack•2d ago•25 comments
Open in hackernews

Border search safe TOTP authenticator app?

9•jakedata•3h ago
While crossing international borders, a traveler may be legitimately asked to provide access to their devices. Such a person is often not in a position to refuse.

I am searching for a dual-pin TOTP app that looks like it is working whether it is or not. Entering the wrong PIN might cause the app to generate invalid codes while optionally wiping the real config.

Actually attempting to use the invalid code could potentially trigger all kinds of actions on the server that received the bogus login request. Sending an SOS email might be one such action.

I am not sure such a thing exists in either major app store. Thoughts?

Comments

xxpor•3h ago
Be very careful with your threat model here. If an agent attempts to use the codes and they don't work, and they find out there's a dual pin mechanism, you could end up in more trouble than with whatever they'd have seen in the first place.
mrsilencedogood•2h ago
Yeah, people love to LARP being Snowden but never actually have anything even theoretically worth being sent to border-jail over protecting.

And, if you do, and you're really asking hacker news for opsec advice, I would suggest you abandon your career as a super-spy or whatever you're doing, because you're doing it very wrong.

jakedata•2h ago
Not a superspy. Oblig: https://xkcd.com/705
ectospheno•2h ago
Have a phone just for travel. Different account. Only have things you actually need during travel on it. Turn on a cheap plan when you need it. If they ask for something just say you can't remember and let them keep it.
soraminazuki•34s ago
This is the nothing to hide argument dressed up with hyperbole, straw mans, and insults. You're making fun of people protecting basic human rights.
altairprime•2h ago
Memorize one TOTP key for a cloud offering; then store the rest in it. 1password, Lastpass, etc. It’s not that much longer than a Windows product key, and I still know one of those.

The secret key is just an RNG output so you could also take it in 4 byte chunks and memorize 16 PRNG inputs that generate each the 4 bytes.

Or you could memorize a passphrase, take a sha2 hash of it, and then memorize a single PRNG input that spits out the bitstring diff between the hash output and the TOTP key. That way you aren’t wholly dependent on memorizing numbers and you can still safely use a more predictable and weak ‘PRNG’ that can amplify the bitstring salt out of an input.

etc.

jasonpeacock•2h ago
FYI, you're asking about duress codes[1] - it may help your search to use that term.

[1] https://en.wikipedia.org/wiki/Duress_code

esbranson•2h ago
Lying to US officials is 5 years in prison. Per instance. One assumes other countries have similar laws, but I doubt anyone knows what actually happens in courts outside the US.
slau•1h ago
Just store the TOTPs you actually care about on a Yubikey. Leave a few “worthless” TOTP in whatever TOTP app you use. Remove the Yubico Authenticator app before crossing the border.
Elfener•1h ago
This post came to mind: https://blog.singleton.io/posts/2022-10-17-otp-on-wrist/

I doubt anyone wants to search a f-91w.

Nextgrid•1h ago
You need to re-evaluate your threat model and change your approach. As others have said here, a TOTP that doesn't work would attract more attention that one that does or one that outright doesn't exist, all the way up to escalating the encounter from casual privacy-conscious user to alleged spy.

The best way is to legitimately not have anything on the phone or your online presence that would cause problems, and then just be transparent (honestly, they're not after your nudes or embarrassing texts). A lot of border checks are based on feelings and if you look the part they'll quickly flick through the phone for obvious stuff they're after and will let you go once they don't find it.

If you are actually doing something that would cause issues, then you keep this off the local device and onto a remote one. Use a YubiKey or other dual-use authenticator (that gives you plausible deniability for having it - you can use the same key on benign social media accounts, etc) to access it from a secure device once you're through.