This key derivation function (KDF) allows you to generate a private key for any blockchain using the Secp256k1 curve (i.e Bitcoin and Ethereum), using any seed and password of choice.
It is resistant to trivial dictionary and rainbow table attacks, unlike the conventional method of using SHA256 with a single input.
With that said, resistance to brute-force attacks depends on the input. It is recommended to use a strong password and, preferably, a non-stereotypical quote or text as the seed.
The idea is to use a relatively large seed, such as a quote, poem, or page from a book, combined with a shorter personal password that is not used in any other application
This is a client-side script, meaning it can be executed offline by disconnecting from the internet once the page has loaded, as everything is done in your browser.
Full source code: GitHub Repository.
Generated Private Key: