CS 255: Introduction to Cryptography

Winter 2026

Cryptography is an indispensable tool for protecting information in computer systems. This course explains the inner workings of cryptographic primitives and how to use them correctly.

Administrative

Lectures: Mon/Wed   3-4:20pm,   CoDa B60
Section: Friday:   1:30-2:20pm,   Location: McCullough 122
Course syllabus (and readings)
Course overview (grading, coursework, exams)
Questions for CAs: Ed Discussions.
Videos: cs255 online   (for videos and slides covering some of the material in class)

Final Exam

The final exam will take place on Tuesday March 17 from 8:30am to 11:30am PT in CoDa B60.

The exam is in person and you will have three hours to complete the exam. During the exam you may use any static resource, such as books and notes. You may *not* use any Internet resources such as a search engine, an AI, or a friend. Please let the TAs know if you have a conflict with the exam time.

The exam format will be similar to that in previous years. Sample exams from previous years are provided below.

Previous final exams:  

[2025] ,   [2024] ,   [2023] ,   [2022] ,   [2019] ,   [2018] ,   [2017] ,   [2016]

Practice work sheet. You do not need to turn this in.

Homeworks and Projects

--
Homework #1:    [html]
Due: Wednesday, Jan. 14, 2026, via Gradescope (code="8DE6NR")
--
Homework #2:    [pdf]
Due: Thursday, Jan. 29, 2026, via Gradescope
--
Project #1: Build a password manager
Assignment:    [instructions]   [starter code]
Due: Wednesday, Feb. 11, 2026, via Gradescope
--
Homework #3:    [pdf]
Due: Thursday, Feb. 19, 2026, via Gradescope
--
Project #2: chat client
Assignment:    [instructions]   [starter code]
Due: Tuesday, March 3, 2026, via Gradescope
--
Homework #4:    [pdf]
Due: Wedesnday, March 11, 2026, via Gradescope

Course calendar

Lecture recordings

Video cameras located in the back of the room will capture the instructor presentations in this course. For your convenience, you can access these recordings by logging into the course Canvas site. These recordings might be reused in other Stanford courses, viewed by other Stanford students, faculty, or staff, or used for other education and research purposes. Note that while the cameras are positioned with the intention of recording only the instructor, occasionally a part of your image or voice might be incidentally captured. If you have questions, please contact a member of the teaching team.