PHIlosophy
Challenge decription:
Clam decided to start studying philosophy, and what is the difference between plus one and minus one anyway…
|
|
Solution:
We notice that the phi is different from ordinary $phi = (p-1)*(p-1)$. But after some calculation, we will have $S=p+q$ and $P = pq$. Apply viete theorem and we will receive p,q.
|
|
layers
Challenge decription:
|
|
Solution:
We can see this a xor encryption, and the key is xored 1000 times with the message: $msg = msg \oplus key .. \oplus , key$ (1000 times): If we sent null bytes, we will receive the key xor with itself 1000 times, xor that back to the ciphertext and then we have reconverd the message.
|
|
random rabin
Challenge decription:
I heard that the Rabin cryptosystem has four decryptions per ciphertext. So why not choose one randomly?
|
|
Solution:
The Rabin cryptosystem derive on the quadractic residue to encrypt, and decrypt message. We notice that in the decrypt process it will pick one of 4 and return it out. We don’t know what form of the number we receive but one of its property: $r^2 \equiv ct \pmod{n}$ and $ct \equiv m^2 \pmod{n}$. The message is only 16 bytes so it can not larger than modulo n with is 1024 bit.
|
|
tss1
Challenge decription:
I implemented a simple threshold signature scheme for Schnorr signatures.
|
|
Solution:
The main idea is to make $apk$ and $R$ is determined. The easiy way to get it is to get $pk2$ and $R2$ (which we can calulate) to $-pk1+G$ and $-R1+G$ respectively. This will make $apk$ and $R$ is G - which we know, the rest is just some implementation.
|
|