p4-team / crypto-commons Goto Github PK
View Code? Open in Web Editor NEWSmall python module for common CTF crypto functions
Small python module for common CTF crypto functions
k = 3
e = 0x10001
p = 5300683
xx = 163350155649156113641909525
assert xx < p**k
yy = pow(xx, e, p**k)
f = lambda x: (pow(x, e, p**k) - yy) % p**k
df = lambda x: (e*pow(x, e-1, p**k)) % p**k
a = [x for x in range(p) if (pow(x, e, p) - yy) % p == 0]
assert any((x - xx) % p**k == 0 for x in hensel_lifting(f, df, p, k, a))
if I set the exponent to 3
, this doesn't fail
First of all, thanks for this repo!
I am trying to make your work available on NixOS.
The expression to build the package is done, and the PR is pending at NixOS/nixpkgs#73069 .
However, a license is usually required as meta-information related to the package, and it seems to be missing from here.
Under which license is this work available?
Thanks!
I really like the aim of this project. I was thinking of building one by myself and then I found this.
Anyway, why the main folder is called p4team? Is this some kind of "private"/"exclusive" software?
I think that this library should be "team"-less as I'm willing to help writing some code.
Another question, classic cipher code (like Kasisky over Vigenere, Playfair Enc/Dec) is in the scope of this library or it's Modern Crypto only?
Thanks
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.