摘要: [KPCTF 2024]ez_fermat from Crypto.Util.number import * p = getPrime(1024) q = getPrime(813) n = p * q d = p e = inverse(d, (p-1)*(q-1)) flag = b'NSSCT 阅读全文
posted @ 2025-02-25 22:10 ink599 阅读(100) 评论(0) 推荐(0)
摘要: CRYPTO-DSA 参考某位大佬的博客和nss的一些题目,这两天的DSA题目 DSA数字签名 | DexterJie'Blog [NCTF 2021]dsa task.py from Crypto.Util.number import * from secret import flag from 阅读全文
posted @ 2025-02-24 21:50 ink599 阅读(255) 评论(0) 推荐(0)
摘要: 一次很棒的旅行 阅读全文
posted @ 2025-02-16 02:52 ink599 阅读(59) 评论(0) 推荐(0)
摘要: VNCTF2025_Crypto Simple prediction task.py from random import shuffle from Crypto.Util.number import getPrime from random import choice, randint from 阅读全文
posted @ 2025-02-16 01:59 ink599 阅读(211) 评论(0) 推荐(0)
摘要: factor easy_factor1 task.py from Crypto.Util.number import * from Crypto.Util.Padding import * from Crypto.Cipher import AES from hashlib import sha25 阅读全文
posted @ 2025-01-27 21:42 ink599 阅读(134) 评论(0) 推荐(0)
摘要: 针对N=p^r*q分解之初探 论文地址:https://eprint.iacr.org/2015/399.pdf 题目:https://www.nssctf.cn/problem/2016 from Crypto.Util.number import bytes_to_long, getPrime 阅读全文
posted @ 2025-01-26 17:05 ink599 阅读(102) 评论(0) 推荐(0)
摘要: CTF-CRYPTO-ECC(2) 椭圆加密 4.BSGS(小步大步法) [HITCTF 2021 ] task.py #Elliptic Curve: y^2 = x^3 + 7 mod N which is secp256k1 N = 2**256-2**32-2**9-2**8-2**7-2* 阅读全文
posted @ 2025-01-12 22:46 ink599 阅读(144) 评论(0) 推荐(0)
摘要: CTF—CRYPTO-ECC(1) 椭圆加密 1.简介 椭圆曲线密码学(Elliptic curve cryptography),简称 ECC,和RSA、ElGamel 算法等类似,是一种公开秘钥加密的算法,也就是非对称加密。ECC 被公认为在给定秘钥长度下最安全的加密算法。ECC 依赖于解决大椭圆 阅读全文
posted @ 2025-01-12 00:55 ink599 阅读(874) 评论(0) 推荐(0)