crypto101 / exercises Goto Github PK
View Code? Open in Web Editor NEWThe exercises for Crypto 101.
The exercises for Crypto 101.
Demonstrate why doing a byte-by-byte comparison of two values which terminates as soon as the two differentiate is vulnerable to timing attacks.
return "digest_abc" == "digest_xyz"
So, basically, prove that per-user salts and using HMAC instead of whatever still doesn't fix anything.
Example text:
A company's intranet login (accessible at hmac-password-store-intranet
) was recently compromised with a SQL injection attack. They have fixed the issue since then, but the breach resulted in a complete user table dump. You can access it at hmac-password-store-csv-dump
.
Fortunately, they didn't store the passwords in plaintext. It even appeared to tick all the right boxes.
Log in as the admin user.
Here's an example exercise text:
There's a guest list for a cool party that you really want to get in to. The party has a guest list on a website. You can access it as guest-list
. The website shows the current guest list, and lets you upload a new one. The guest list is a newline-separated list of people.
The party organizers only want people who know the secret password to be able to update the list. Because one of them is very smart, they didn't want to just make you submit the password, where anyone could intercept it. Instead, you have to produce a signature like so:
signature = sha256(password + guest_list)
Add the e-mail address you used to register to the end of the list.
Right now it does string based checking which is kinda lame.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.