cryptol
1,228
Stars
130
Forks
52
Watchers
253
Open Issues
BSD-3-Clause
许可证
Haskell
语言
2014-04-17
创建时间
2026-11-06
最近更新
项目能做什么
Cryptol 是一种专为密码学算法设计的形式化规范语言及解释器,用 Haskell 编写。它解决了密码学规范难以验证与执行的问题,具备完全可执行性;支持通过随机向量测试算法,并能调用 Z3 等 SMT 求解器进行形式化证明,确保算法的正确性。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
[](https://github.com/GaloisInc/cryptol/actions?query=workflow%3ACryptol)
[](https://gitpod.io/#https://github.com/GaloisInc/cryptol)
# Cryptol, version 3
This version of Cryptol is (C) 2013-2024 Galois, Inc., and
distributed under a standard, three-clause BSD license. Please see
the file LICENSE, distributed with this software, for specific
terms and conditions.
# What is Cryptol?
The Cryptol specification language was designed by Galois for the NSA
Laboratory for Advanced Cybersecurity Research as a public standard for
specifying cryptographic algorithms. A Cryptol reference specification
can serve as the formal documentation for a cryptographic module.
Unlike current specification mechanisms, Cryptol is fully executable,
allowing designers to experiment with their programs incrementally as
their designs evolve.
This release is an interpreter for version 3 of the Cryptol
language. The interpreter includes a `:check` command, which tests
predicates written in Cryptol against randomly-generated test vectors
(in the style of
[QuickCheck](http://hackage.haskell.org/package/QuickCheck)). There is
also a `:prove` command, which calls out to SMT solvers, such as
Yices, Z3, or CVC5, to prove predicates for all possible inputs.
# Getting Cryptol Binaries
Cryptol binaries for Mac OS X, Linux, and Windows are available from the
GitHub [releases page](https://github.com/GaloisInc/cryptol/releases).
Mac OS X and Linux binaries are distributed as a tarball which you can
extract to a location of your choice. Windows binaries are distributed
both as tarballs and as `.msi` installer packages which place a shortcut
to the Cryptol interpreter in the Start menu.
On Mac OS X, Cryptol is also available via
[Homebrew](http://brew.sh/). Simply run `brew update && brew install cryptol`
to get the latest stable version.
## Getting Z3
Cryptol currently uses Microsoft Research's [Z3 SMT
solver](https://github.com/Z3Prover/z3) by default to solve constraints
during type checking, and as the default solver for the `:sat` and
`:prove` commands. Cryptol generally requires the most recent version
of Z3, but you can see the specific version tested in CI by looking [here](https://github.com/GaloisInc/what4-solvers/releases/tag/snapshot-20260622).
You can download Z3 binaries for a variety of platforms from their
[releases page](https://github.com/Z3Prover/z3/releases). If you
install Cryptol using Homebrew, the appropriate version of Z3 will be
installed automatically. If you're using Linux, the package manager for
your distribution may include Z3, as well, though sometimes the
available versions are somewhat old.
After installation, make sure that `z3` (or `z3.exe` on Windows)
is on your PATH.
### Note for 64-bit Linux Users
On some 64-bit Linux configurations, 32-bit binaries do not work. This
can lead to unhe
阅读完整原文
项目深度分析 AI 生成
密码芯片/实现形式化验证与合规咨询服务
| 产品构想 | 基于 Cryptol 规范与 SMT 证明能力,为需要通过高等级安全认证的硬件/加密软件公司提供规格书编写与等价性验证报告。 |
| 核心功能 | 参考标准规范编写、Cryptol 与 Verilog/C 代码的一致性自动化形式化证明、合规审计交付物生成 |
| 目标用户 | 芯片制造企业、安全模块 (HSM) 厂商、需要通过 FIPS 等密码认证的软件开发商 |
| 难度/周期 | 高 · 3-6个月 · 成本:极高(需要深厚的密码学与形式化验证专业知识储备) |
| 收费模式 | 高客单价专家咨询服务费、按项目交付认证支持费 |
| 竞争风险 | 销售周期长,高度依赖行业资质与头部信任关系,个人拓客难度极高。 |
| 依据 | 已验证事实 |
后量子密码 (PQC) / 新兴算法的测试向量与形式化验证套件
| 产品构想 | 针对 NIST 新推的后量子密码学标准(如 ML-KEM、ML-DSA),封装开箱即用的 Cryptol 规格库与 CI/CD 自动化对比测试工具包。 |
| 核心功能 | 常用标准算法预置 Cryptol 模型、随机化模糊测试与 QuickCheck 集成套件、CI/CD 插件 |
| 目标用户 | Web3/区块链安全团队、网络安全协议实现者、开源密码库维护团队 |
| 难度/周期 | 中等 · 1-3个月 · 成本:低(主要为代码实现与维护时间成本) |
| 收费模式 | 商业授权许可 (Dual-License) 或专业版增值支持服务订阅 |
| 竞争风险 | 目标受众相对小众,算法标准实现已有部分官方测试向量,付费意愿需进一步验证。 |
| 依据 | 数据支持的判断 |
基于 Cryptol 的可执行密码学交互式培训平台
| 产品构想 | 构建面向高校与高科技企业的密码学与形式化工程实操交互培训平台,通过浏览器运行 Cryptol 实验。 |
| 核心功能 | 在线 Cryptol 运行时沙箱、密码算法攻击与防御证明实战课程、作业自动打分系统 |
| 目标用户 | 高校密码学实验室、网络安全培训机构、大型科技企业安全工程师 |
| 难度/周期 | 中等 · 2-4个月 · 成本:中等(Web IDE 与沙箱算力基础设施) |
| 收费模式 | B端机构培训许可采购、个人学员订阅课程收费 |
| 竞争风险 | 市场规模有限,纯学术/教育向转化率可能偏低。 |
| 依据 | AI推测 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| coinpride/CryptoList | 中文介绍暂未生成 Curated collection of blockchain & cryptocurrency resources. |
4,491 | - |
| igmunv/cryptolayer | 中文介绍暂未生成 Криптографический слой, работающий поверх существующих мессе |
335 | Python |
| Xor-el/CryptoLib4Pascal | 中文介绍暂未生成 Crypto for Modern Object Pascal |
267 | Pascal |
| Cryptolens/cryptolens-python | 中文介绍暂未生成 Cryptolens Client API for Python |
206 | Python |
| nasa/CryptoLib | 中文介绍暂未生成 Provide a software-only solution using the CCSDS Space Data |
177 | C |
| ajayrandhawa/Cryptolocker | 中文介绍暂未生成 CryptoLocker is open source files encrypt-er. Crypto is deve |
141 | - |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2014-04-17,近 30 天仍在推送,发布过 29 个 Release |
| 社区活跃 | Star 1,228 / Fork 130 / Issue 253(数据支持,可自行核实) |
| 许可证 | BSD-3-Clause |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。