TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Amtrak.js – A JavaScript library to interact with Amtrak's tracking API

25 pointsby piemaddover 3 years ago

3 comments

koolbaover 3 years ago
Nice project! There&#x27;s a number of government and quasi-government agencies that I wish had end user accessible APIS.<p>AES encrypted responses from Amtrak&#x27;s API all encrypted with the same constant hard coded IV:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;pieromqwerty&#x2F;amtrak&#x2F;blob&#x2F;master&#x2F;src&#x2F;amtrak&#x2F;amtrak.ts#L7-L11" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pieromqwerty&#x2F;amtrak&#x2F;blob&#x2F;master&#x2F;src&#x2F;amtra...</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;pieromqwerty&#x2F;amtrak&#x2F;blob&#x2F;e0bc815f7ff73484615ac68eb7b4eee63b3fbc30&#x2F;src&#x2F;amtrak&#x2F;amtrak.ts#L93-L100" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pieromqwerty&#x2F;amtrak&#x2F;blob&#x2F;e0bc815f7ff73484...</a><p>What a waste of time and tax payer money. Might as well just make the API public and add some CORS headers. Or require an API key and have the website dynamically generate them internally with a short expiration.<p>The encryption dance being performed here is all theater and the acting sucks.
评论 #28492784 未加载
reustleover 3 years ago
This is fabulous. I tried to do this a few years ago while I was building <a href="https:&#x2F;&#x2F;Amtrak.io" rel="nofollow">https:&#x2F;&#x2F;Amtrak.io</a> and failed to sort out their obfuscation.
评论 #28492773 未加载
galaxyLogicover 3 years ago
Interesting. But couldn&#x27;t this data be loaded just with REST too?
评论 #28492797 未加载