This website contains age-restricted materials including nudity and explicit depictions of sexual activity.
By entering, you affirm that you are at least 18 years of age or the age of majority in the jurisdiction you are accessing the website from and you consent to viewing sexually explicit content.
The problem with recreating cryptographic libraries is that unless you are a cybersecurity expert, you are very likely to leave hidden vulnerabilities in your implementation.
Yep, reinvent it for educational purposes and then burn it with fire.