Mohammadreza Motabar
Mohammadreza Motabar
M.Sc. Student in Computer Science

Mohammadreza Motabar

Welcome to my corner of the internet.

Sharif University of Technology & University of Tehran • Tehran, Iran

I am a Master of Computer Science student at Sharif University of Technology, advised by Prof. S. Khazaei and co-advised by Prof. B. Abdolmaleki. Previously, I earned my Bachelor's degree in Computer Science from the University of Tehran (graduating 2nd in class, advised by Prof. Amir Ghadermarzi).

What fascinates me most about computer science is the bridge between rigorous mathematical theory and practical security solutions. My research centers on Cryptography (especially Secure Multi-Party Computation and Lattice-based constructions) and Complexity Theory.

Mohammadreza Motabar

Research Interests

#Cryptography & MPC
#Theory of Computation
#Complexity Theory
#Security & Protocol Design
#Telecommunication Security
#Embedded Systems Security

Research Experience

Investigating lattice-based crypto, primality testing, and number field sieves

View all research

Lattice Based Password-Hardened Encryption

Ongoing Project
Aug 2026 – Present

Advisors: Prof. B. Abdolmaleki, Prof. S. Khazaei, Dr. S. Nasirzadeh

Investigating post-quantum password-hardened encryption (PHE) from lattice assumptions to defend client-server authentication against offline dictionary attacks.

  • Analyzing cryptographic protocol designs across core lifecycle phases: enrollment, validation, and key rotation.
  • Developing strategies for noise management, zero-knowledge verification, and algebraic optimization over lattice structures.

Primality Testing and Factorization Algorithms

B.Sc. Thesis
Sep 2023 – May 2024
University of Tehran•Tehran, Iran

Advisors: Prof. Amir Ghadermarzi

Comprehensive research into classic and modern primality tests, factoring algorithms, and their underlying algebraic and number-theoretic foundations.

  • Studied the Fast Fourier Transform (FFT) algorithm for fast arithmetic, the Tonelli–Shanks algorithm for square roots in finite rings, and the Miller–Rabin test with ERH extensions.
  • Analyzed Lucas and Grantham Frobenius primality tests, Succinct Certificates, and the AKS deterministic primality test.
  • Investigated Elliptic Curve algorithms including Lenstra ECM, Shanks–Mestre point counting, Schoof algorithm, Goldwasser–Kilian primality test, and Atkin–Morain ECPP.
The B.Sc. thesis manuscript is currently undergoing revision and will be uploaded here once revised.

Featured Projects

Compilers, arbitrary precision arithmetic, and algorithms

View all projects
Compilers & Systems

COOL Compiler Frontend

A complete standalone compiler frontend written in C++ for the Classroom Object-Oriented Language (COOL). Features lexical analysis via Flex, an LALR(1) parser using Bison, and an AST semantic analyzer verifying typing rules and logic inference.

COOL Compiler Frontend
C++FlexBisonASTSemantic AnalysisCS143
Systems & Algorithms

Arbitrary-Precision Integer Arithmetic (bignum)

A modern, header-only C++ library for arbitrary-length signed integer arithmetic. Supports high-performance arithmetic operations, fast bitwise shifts, comparison operators, and efficient base conversions.

Arbitrary-Precision Integer Arithmetic (bignum)
C++17Arbitrary PrecisionHeader-OnlyArithmetic Algorithms
Algorithms & Data Structures

Balanced Search Trees & Data Structures

High-performance modern C++17 implementations of classic balanced search structures, featuring AVL Tree, Red-Black Tree, and B-Tree with memory safety guarantees and rigorous unit tests.

Balanced Search Trees & Data Structures
C++17Data StructuresAVL TreeRed-Black TreeB-Tree
Algorithms & Problem Solving

Algorithmic Problem Solving & Competitive Programming

A curated collection of 840+ solved competitive programming and algorithmic problems across 14 platforms including Codeforces, Project Euler, CSES, and Olympiad contests.

Algorithmic Problem Solving & Competitive Programming
C++AlgorithmsCodeforcesProject EulerData Structures

Honors & Awards

Competitions, olympiads, and academic distinctions

Ranked 2nd in National Computer Science M.Sc. Entrance Exam

Ranked 2nd nationwide across thousands of applicants in the Konkur M.Sc. examination; awarded full graduate tuition waiver.

2024
Exempted M.Sc. Admission for Exceptional Academic Talents

Awarded direct, exam-exempt admission to the M.Sc. in Computer Science program at the University of Tehran based on undergraduate distinction.

2024
Ranked 2nd in B.Sc. Class & Consecutive Dean's Honor Roll

Graduated 2nd among 66 Computer Science students with an overall GPA of 18.81/20 (19.46/20 in the final two years); recognized as 'Excellent in Term' every semester.

2019 – 2024
Third Prize — International Mathematics Competition for University Students (IMC)

Prestigious worldwide collegiate mathematics competition organized by University College London.

2022