Hacker News new | ask | show | jobs
by shashasha2 1934 days ago
Is prime factorisation used in SHA256 ? Would I be able to solo mine from my CPU again ?
2 comments

No, to both questions. Implementing SHA256 is actually quite easy, no more than 50 lines of code. My current implementation that I use for my personal use is under 100 lines of code including variable declarations (not just executable lines of code).

https://en.wikipedia.org/wiki/SHA-2

No. Prime factorization is used for public key cryptography, not hashing.