SShortSingh.
Back to feed

How the ABA routing number check digit works, and why a passing number is not proof of a real bank

0
·4 views

Every US bank transfer uses a nine-digit ABA routing number, whose ninth digit is a check digit computed by weighting the first eight digits with 3, 7, and 1 and summing them. A number is well formed when that total is a multiple of 10. This method differs from the Luhn algorithm used for credit cards, so the two should not be interchanged. The check reliably catches single-digit typos, but about one in ten random nine-digit strings passes it by chance, so a pass only means the number is correctly formed. Developers should also store routing numbers as strings to preserve leading zeros.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Patched PHP Server Checked for Prior Breach: Ten-Point Read-Only Forensic Review Finds No Evidence

After a critical PHP remote code execution flaw became public, a small e-commerce operator patched its production site within hours but worried about the gap before the fix. Working with only ssh and grep under a one-hour, read-only constraint, the author ran ten checks covering untracked or modified PHP files, webshell patterns, cron jobs, processes, network connections, and access logs. Review of a week of logs (25,584 requests) and the server's state turned up no webshells, no suspicious scheduled tasks or connections, and no direct .php requests returning 200. The author also notes two shell pitfalls, root-only log access and empty variables in heredocs, that skewed early results. The conclusion separates the two findings: the server was patched, and no evidence of compromise was found in the disclosure-to-patch window.

0
ProgrammingDEV Community ·

Shopify Fulfillment Order API: Ship Orders and Add Tracking Numbers from Your App

A tutorial walks developers through the Shopify GraphQL Admin API for fulfilling orders from their own app in 2026. Shopify splits each order into fulfillment orders per shipping location, and each line item tracks its remaining quantity. Developers can ship part of an order, with the order becoming partially fulfilled, and attach tracking numbers. When a known carrier like DHL Express is named, Shopify builds the tracking link automatically, while unlisted carriers may need a custom URL. The guide also covers updating tracking details and cancelling a shipment, which returns items to the fulfillment order.

0
ProgrammingDEV Community ·

Python Method Reconciles a Currency-Hedged Equity Portfolio Using Forward Contracts

A walkthrough explains how to reconcile a currency-hedged equity portfolio using a synthetic example in which a €10.3 million closing value at $1.0400 per euro shows a $288,000 loss, while a €10 million forward at $1.0950 yields a $262,000 gain. The method breaks unhedged profit and loss into equity change, currency effects and an interaction term, which must sum to the direct difference in dollar valuations. It compares a delivery-based view, which converts remaining euros at closing spot, with a valuation view that adds each forward's notional times its price difference from spot. The author stresses handling quote direction explicitly, using trade-date observations, and recording original quotes and precision conventions. The example excludes funding costs, fees, taxes and external cash flows, and is implemented in a standard-library Python script.

0
ProgrammingDEV Community ·

IndexNow lets developers ping search engines directly to speed up new page indexing

A developer describes IndexNow, a protocol that lets site owners notify participating search engines such as Bing, Yandex, Seznam and Naver when a page is added or changed. Setup requires hosting a verification key file on the domain and sending a single HTTP POST with the key and URLs, with no account or API dashboard needed. The protocol is only a crawl request and does not guarantee indexing or ranking, but it removes the discovery delay that often slows new sites. The author says it complements a standard sitemap, which serves as the full inventory of pages. They also warn that the key file can be lost if a build process overwrites it, so developers should check the response code, where 200 indicates acceptance.