instruction
stringlengths
32
27.2k
Suppose that, instead of choosing r completely at random in ElGamal public key encryption, a lazy encryptor (Alice) derives it by following r′= 2r. Suppose also that Eve knows that Alice had encrypted the same message m with the two random numbers r and r′= 2r, thus creating two ciphertexts {k, c...
Assuming our domain and codomain both have 4 elements, the uniform distribution of inputs to outputs means the function is injective. It is widely agreed that randomly selecting a domain element results in log2(4) = 2 bits of entropy in the selection, and that because of being injective, the output of said function inp...
When $n = pq$ where $p$ and $q$ are primes, we can generate random numbers until we get $a$ and $b$ such that $a^2 \equiv b^2 \pmod n$. This implies $n$ has some common factor with $a^2-b^2$, and then we can use the Euclidean algorithm to find the gcd, which will be a factor of $n$. However, I'm trying to figure out h...
As we know, in the blockchain system every node has historical data that contains all previous transactions to maintain the integrity and approve the future transaction. What if blockchain is implemented in everyday life and people makes billions of transaction in a day, then a node must run out of memory sooner or lat...
Why is the core ChaCha primitive not good for use in a collision-resistant compression function (crypto hash)? Why go through the trouble to create BLAKE? What's wrong with using the core ChaCha primitive unaltered in a Merkle–Damgård like construction to construct a collision-resistant compression function/one-way com...
I have a big problem to figure how the security model in papers about side-channel are relevant (briefly the attacker has a partial access to the hardware). Why these breaches are so seriously considered? Is there any known and famous story of a system attacked with these techniques?
A. From what I heard (and I am beginner at a security/cryptography), if you have a payload that is very large, asymmetric is a no-go. B. Also, if you do have secret symmetric (e.g. AES) keys, you might not want to share them with others, if they have high importance to you. I am trying to understand things and I cannot...
Why not use chacha derivatives (BLAKE, rumba) to make an [H]MAC for use with chacha? Why use poly1305? This question is especially interesting considering... "The security of Poly1305[...] is very close to the underlying [...] block cipher algorithm." -Wikipedia So... why not reconfigure chacha as a Merkle–Damgård...
Trusted Platform Module (TPM) is designed as a hardware-based root of trust to protect cryptographic keys even against system based adversaries. Although Intel's firmware based fTPM has FIPS 140-2 and STMicroelectronics hardware-based TPM has Common Criteria EAL 4+ certifications, recently in an attack TPM-FAIL: TPM m...
Let's try to solve a discrete logarithm: $\beta \equiv \alpha ^{x} \bmod \,\, p$ using the Pohlig-Hellman algorithm. Let's suppose that $p-1=tq$, where $q$ is a large prime number. This means that the resolution is probable infeasible, however, if $t$ is factorizable with small prime numbers the algorithm can determi...
Clearly it would provide perfect insight if all 256 bits were used. What about if 255 were used? Would the general behavior and properties of "sha-255" be expected to be close to sha-256? What about "sha-5?" I imagine at some point the insight we can gain must break down, but am not sure exactly where that is. sha-256 ...
I have doubts about this question Consider the following textbook RSA example. Let be p = 7, q = 11 and e = 3. Give a general algorithm for calculating d and run such algorithm with the above inputs. What is the max integer that can be encrypted? Is there any changes in the answers, if we swap the values of p...
How do you crack a long Vigenère cypher when the key is unknown? I have tried frequency analysis, but I'm not making any progress.
Suppose we have $N$ parties, two of whom are Alice and Bob, while some fraction of the remainder are malicious agents working together. We form a network where each party can pass an encrypted message to another indirectly by routing it through other parties. Alice and Bob know a key secretly, so they can communicate p...
As far as I understand secp256k1 is defined over the group p with p = FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE FFFFFC2F I don't really understand how out of bounds values are handled in particular with homomorphism of the commitments. Assume I commit to the value 5 which would be $G + G + G + G +...
I'm reading through the development of PAKE protocols, starting with EKE and SPEKE, their potential pitfalls, and what motivates their protocol choices. And I've been wondering, what is wrong with the following (very simple) modification to classic DH to make that PAKE: Let Alice and Bob have a shared secret s = hash(p...
I am using this cipher-text c = 04 10 12 00 01 08 67 0A 19 65 0F 03 0A 00 with two possible keys k_1 = 45 44 46 41 42 43 47 4B 4D 45 4B 42 5D 4E and k_2 = 45 44 46 41 42 43 47 4B 4D 45 41 4C 45 4E If I decrypt the cipher-text with k_1 I am getting 'ATTACK AT DAWN' and with k_2 'ATTACK AT NOON'. Which of the plain...
If I have only the ciphertext but the alphabet and the value of a and b are all unknown ... how would I go about this? I understand decryption with the key and alphabet, that is fairly easy but if we don't have even one of them what would be my first step? also, my goal is to have the computer return the plaintext and...
If you have $a^b \bmod n = c$, and $b,n,$ and $c$ values are given, is it possible to find a value for $a$ within a given range? So is it possible to find $a$ in $a^{2051} \bmod 3149=636$ knowing a lies in between $1900$ and $2000$?
The output of VRF contains two parts, the first is the output of the VRF hashing and the second is the proof of correctness. In a unique signature scheme, the signature also contains two parts which are similar to the VRF. The previous works pointed out the VRF can be obtained via a unique signature, but in general, t...
I am a little bit confused in the terms i.e Key Scheduling and Key Generation. What is the actual difference between these two terms? According to Wikipedia, the terms are described as: Key Generation: Key generation is the process of generating keys in cryptography. A key is used to encrypt and decrypt whatever data i...
Assume that $\Pi$ is a secure PKE scheme (or other appropriate encryption schemes) with 1-bit message space. And it can be applied bit-by-bit to construct a many-bit encryption scheme $\Pi'$. Actually, let $\Pi = (\mathrm{Gen}, \mathrm{Enc}, \mathrm{Dec})$ with $\mathcal{M} = \{\, 0,1 \,\}$. And we define $\Pi' = (\ma...
Let's consider a discrete logarithm $\beta \equiv \alpha ^{x} \bmod \,\, p$ We can solve it using Pohlig-Hellman algorithm. And, if $p-1 = tq$ where $q$ is a large prime factor, we can avoid any leakages by choosing $\beta=a^{t}$. This is what my professor said at lesson, however i don't succeed in understanding why ...
The Inversive congruential generator produces random values with: $$x_{n+1} = a\cdot x_{n}^{-1} + b \mod P$$ (special case if $x_n=0$ -> $x_{n+1}=b$) starting with an initial value $x_0$ With well choosen $a,b,P$ it produces all values in $\mathbb{F}_P $ (which are $[0..P-1]$) That's the case if there is no r with $r^2...
This is from my homework: Prove that if there exists a one-way function, then there exists a one-way function f such that $f(0^n ) = 0^n$ for every $n$. Note that now for infinitely many values $y$, it is trivial to compute $f^{−1}(y)$. While I don't expect someone to spell the answer out for me, setting f as the in...
Is the probability of distinguishing HMAC from a random oracle is the same as the probability of forging HMAC? Can we say that the following statement is trivial? $\Pr[\text{Forging $\operatorname{HMAC}_k(m)$}] \geq \Pr[\text{Forging $\operatorname{HMAC}_{f(m)}(m)$}]$ where $f(\cdot)$ is a random oracle and $k$ is a ...
Alice and Bob have to talk through Eve. (server to device through untrusted third party that relays messages, no TLS available) Assume a secure key. Out of scope. Example, ECDH key exchange with HKDF. Each payload has associated data. Time, version, type, etc. Data that is used to get a message to the correct function ...
I have come across a couple of protocols in which the public keys of the parties are static across conversations, even with different users. Something about this makes my hairs stand on end but I can't pin down what the actual weakness is, if there is one. Is a scheme like this OK or is it known to be vulnerable?
From this article: https://tlu.tarilabs.com/cryptography/digital_signatures/introduction_schnorr_signatures.html#why-do-we-need-the-nonce The article states that the challenge e = H(P || m) is insecure, and that e = H(R || P || m) should be used instead. The signature is s = k * e, where k is the private key. My questi...
I'm studying the Index Calculus method for Discrete Logarithm. In the book "Introduction to Cryptography with Coding Theory" by Trappe it's told that, if $$\alpha^k\equiv \prod p_i^{a^i} \mod p$$ holds, then $$k\equiv \sum a_i L_\alpha(p_i) \mod (p-1).$$ However, it doesn't show why. Can you explain to me?
Is there a technical difference between tag such as tag generated by authenticated encryption, and signature such as the signature generated by a functional signature scheme or homomorphic signature scheme.
What I understand about the random oracle game: The adversary can query the oracle polynomial many times with the same (secret but unknown) key. From the output returned by the oracle, the adversary has to tell whether the oracle has chosen RANDOM or CIPHER (with probability more than .5). Now, how does that stop adv...
Background: The MathMesh crypto platform (refs at the bottom) is a newly-proposed technology stack which has been somewhat cheekily called a "Grand Unified Theory of Security on the Internet". Its "Meta Cryptography" module relies on the following property of Discrete-log Diffie-Hellman: $privKey: x, pubKey: X = x.P$ $...
In the homomorphic authenticated encryption, as described 1, there are Eval and Dec PPT algorithms: In Eval, f is the function to be performed on the encrypted data. However, I need to know why it is used in Dec algorithm?
We start working with the Ring $R=\left(\mathbb{Z}/p\mathbb{Z}\right)\left[x\right]/\left(x^{3}-1\right)$, $p$ prime, i.e. degree two polynomials with coefficients modulo $p$ modulo $x^{3}-1$. As $x^{3}-1=\left(x-1\right)\left(x^{2}+x+1\right)$, we choose a subset of $R$, $S\subset R$, and a public value, $z\in\mathbb{...
I have been able to exchange session keys on two devices using Libhydrogen's Key exchange using the N variant method. I also want to authenticate both devices to have some protection against the Man in the middle attack. Can I use libhydrogen's Public key signatures method for that? If yes, how to use it with key excha...
As I read up on rainbow tables, I found that most sources suggest storing a plaintext - the result of Rk(hk) - in the last column, while others just store the hash hk, basically stopping one step earlier. Is there a point in computing and storing the plaintext, instead of storing the hash? What do we gain from the extr...
This cofactor (as I understand it) effectively discards valid points that satisfy the curve equation over the finite field. Why would one wish to reduce the number of possible private keys, it seems to reduce security. What is the reasoning behind using a cofactor of 8?
Suppose you are given an algorithm $A$ which takes $y \in \{0, 1, \ldots , N − 1\}$ as input, and outputs $x \in \{0,1,\ldots,N − 1\}$ such that $x^2 \equiv y \pmod{N}$. Design an efficient, randomized procedure that uses $A$ to get prime factors. This is a homework problem for the graduate algorithm course. It's sim...
I'm trying to understand this question and I do not understand part of it. I have part of figured out, part of it not. Considering the hash function h(i) = (i + 5) mod 7, used in an implementation of the S/Key protocol, with a seed value of 0, the first password the user returns after the initialization step is 4 (i.e...
Why are prime numbers important in cryptographic constructs? I am not interested in RSA examples where factorization is the hard problem itself, that makes sense. However wherever I go I encounter prime numbers, especially prime order groups and more specifically safe primes from Discrete Log to ECurves etc. Is it only...
I'm working with the above figure which shows a challenge-response protocol. Kc - shared key between the host and the client B' - is a biometric captured by device BT' - biometric template computed from B' D' - device authenticator. Match(BT', BT) returns yes if the user computed biometric matches with the template...
It seems like garbled circuits should not be input dependent, and hence should always run in constant time. Just wanted to clarify if this is true.
In a fully homomorphic message authenticator, Alice can authenticate some large data $D$ using her secret key $s$k. She chooses a label $\tau$ for it, and the authentication algorithm authenticates the data $D$ with respect to the label $\tau$. But, how and where are these labels stored?
n = 187 e = 3 C = 185 How to decrypt message? I know there is some way using cryptogram exponentiation. Can you give me a hint?
this is maybe a basic question but I'm trying to better understand elliptic curve cryptography at a fundamental level. I understand that a finite field is required in order to define a boundary for an elliptic curve. Then, x,y values that satisfy the curve over this field represent the ec group of the curve. My questio...
I came across a few articles about length extension attacks on cryptographic hash functions. I was very surprised to read that SHA-256 and SHA-512 are prone to length extension attacks. This seems contradictory to the fact that—to the best of my knowledge—there are no known collisions on these algorithms. According to ...
Given ElGamal ciphertext for a message $m$ with a random $r$ as $(c_1,c_2) \gets (g^r, g^my^r)$ for a public key $y$, and a Pedersen commitment $C \gets g^xh^r$, I have been able to create a proof that $c_2$ and $C$ have equal discrete logs using Chaum-Pedersen proof of equal dlogs, but I'm stuck on how to prove that $...
What exactly is a multi-target attack? How does the attack work on different cryptographic schemes (block ciphers, hash functions, elliptic curves)? How can it be avoided?
what text encryption algorithms are being used nowadays that are secure? Obviously I am not interested in DES or 3-DES that google shows me and which can break...
I am doing a tutorial where my lecturer (PhD) gave me an optional question to do relating to RSA. He said: write a python function that takes as input the server’s public key and then uses that to compute the server’s private key. Print out the server’s private key to standard out. Because according to him, 16-bit or...
I'd want to know if some of these competing technologies has more chance to survive. It seems they are thought to solve a similar problem by different manners and I'd want to stick to the most compatible/used/foreesable to win. It seems it's CT but I'm not sure. Thanks!
It is apparently not good - more precisely it is not secure - to encrypt the same data message M using the same cryptographic K with a block cipher (e.g. AES, but this is not relevant) in both CTR and CBC modes of operation. One example of this statement can be found in ref. [1] below. We can assume a context where t...
The question: "10 friends wish to establish secure communications between themselves using asymmetric-key cryptography. How many keys need to be known by each user?" was posed by my teacher. He says 10 keys are needed. I say only 2 keys are needed. As long as they have copies of the same keypair (keypair=2 keys, a publ...
I just started a course in web security, and I was just wondering quickly if SET in any way would use SSL? I noticed it was developed in part by Netscape. But all I can find is comparisons between the two. People are saying that SSL is a more general while SET would have been just for e-commerce, but then they mean tha...
In this question: Why are the lower 3 bits of curve25519/ed25519 secret keys cleared during creation? The answer indicates that the order of all points on the curve over the finite field 2^255 - 19 is 8 times the size of the subgroup formed by G. i.e. the subgroup size is 1=2^252+27742317777372353535851937790883648493...
WhatsApp uses and end-to-end encryption, on both personal and group chats. According to my understanding, that means every message I send to a group is encrypted on my Device for every group member separately and is sent separately to everyone If I understood properly, this is why WhatsApp group chats are limited to 2...
assuming a two users want to use a one time pad ciphersystem, and they are using a program that was developed by a third party that was supposed to create random undependable bits, but for some reason it tends to output 1 in probability of 70% and 0 in probability of 30%. does it make the one time encryption not perfec...
For NVIDIA TESLA V100 I know a hashcat performance for SHA1: it is about 17000 MH/s. Performance index for V100 is FP32 5120, FP64 2560. But what about supercomputers? For example Summit supercomputer from USA is 200 petaFLOPS in peak. Is any was to calculate it's hash per second performance for SHA1 for example?
I'm reading Herrmann and May's paper; they introduced a method to solve multivariate linear equation modulo unknown divisors. It's shown in Table 1 that, for an 512-bit RSA modulus N with divisor p of size $p \geq N^{1/2}$, experiment with two blocks, each for an 45 bits unknown, yields $m = 15$. But according to what ...
The OpenSSL Random Number generator documented here uses an OS-provided entropy source coupled with a MD5 hash function. Does it impact the quality of randomness to use a broken cryptographic hash such as MD5 for random number generation? The topic is partially addressed in this question, with a focus on SHA1 rather t...
Let's say Alice wants to prove to Bob that she knows a secret S that Bob is also supposed to know. Alice can't be sure Bob is really who he pretends to be, so she needs to make sure Bob can't deduce S from their interaction. Additionally, S could be weak (e.g. "abc123"), so she can't simply send a hash of S to Bob, or ...
I am reading through multivariate cryptography and in every source I have seen, the secret map $P$ is described as "easily invertible" or "easy to invert". What exactly does it mean "easily invertible"?
For argument's sake, let's say that I'm a bad actor who produces malware. I've infected around 10,000 computers and smartphones with my malware, which runs in the background and can be used to make someone else's machine run calculations for me. I've gotten access to some encrypted data that I'm not supposed to have. I...
All threshold signature schemes that I have seen need bilinear pairings to avoid parameter exchange between parties. These are normally commitment schemes for a certain secret. I believe a 2-round non-interactive scheme is possible, without using bilinear pairings, but I'm not entirely sure if it is secure. Setup Assum...
What is the effect on Format Preserving Encryption security if I reorder text before FPE encryption? Take as an example Canadian postal codes (letter-digit-letter digit-letter-digit): Parliment: K1A 0A6 Santa Claus: H0H 0H0 Easy to remember: A1B 2C3 Using the postal code as a base 36 number and applying FF1 (NIST 800...
I'm using ChaCha20-Poly1305 in a "full AEAD" mode, where a payload of data is encrypted and a block of unencrypted "additional data" is secured as well. However, I'd like to also occasionally use the same algorithm without encrypting, just appending the payload of data that would normally get encrypted to the additiona...
I'm having problems decrypting a cipher text that has an transposition cipher applied to it but also a substitution cipher. I don't know in which order they were applied. Does anyone know what steps I should follow to decrypt it?
Is Tiny AES algorithm any different from the standard AES algorithm? I have come across mentions of Tiny AES at a lot of places but none which define it's architecture.
I see nearly all the lattice-based crypto papers talk about the smoothing parameter $\eta$. And I believe even some parameters are chosen with respect to that. However, I do not quite understand what's the purpose of it. What's its relation to lattices? Why is it useful and important for cryptography?
I understand with curve25519 that the private key for secret.box is clamped... I understand that this clamping process to clear the lower 3 bits in order to ensure the key is a multiple of 8, ensuring it's part of the right cyclic subgroup. However, as I generate example keyPairs using sodium such as: a67e2d949d00606d2...
The question is rather simple, but finding resources and answers quite tricky. Homomorphic encryption should enable us to compute over encrypted data. What if the algorithm for computing should be kept in secret as well? Given we have a functioning homomorphic encryption in place, is the algorithm which is applied to t...
I am developing an application that uses ECIES encryption and I am currently storing private keys in secure place on each peer and storing public keys in a shared database (accessible by all peers). Is this a problem? Logically knowing a public key of some peer allows me to send him a message, and no risk because the p...
I'm fairly new to Cryptography, especially elliptic curves in general. I learned to do Point Multiplication, Scalar Multiplication and also programmatically implemented them. But I was trying to do ElGamal scheme because I felt intrigued by the subtlety of it. The problem that haunts me is this: Suppose, I have a gener...
In the book "Introduction to Cryptography with Coding Theory" by Trappe, in the paragraph about the security of the One Time Pad, is it told that given the set of possible plaintexts $P$, the set of possible keys $K$ and the set of possible ciphertext $C$, then: $H(P,K,C)=H(P,K)=H(P,C)$ However, he doesn't explain why....
I am toying with eCash systems and blind signatures, and I started with Chaum's original formulation. In particular, I'm using this formulation from this link: User U chooses blinder r and blinds message m with m' = r^e H(m) mod n and submits m' to the server. He receives a signature s for H(m). Now, my original m sh...
For multiple OTP keys, why not do this: Key = Hash[(EC)DH Shared Secret + Counter] The counter will increase per message, and the output of the hash will be random for each new unique input into it. What are the problems or weaknesses with this design?? EDIT: For clarification: both parties will have the shared secret ...
I came up with this concept, which I thought would be pretty secure. So the idea is this, you have a message $M$, which you split up in blocks of each 256 bits. You generate a random (pseudo-random of course) key of $256$ bits. You XOR the first block of $M$ with this key, which is also the input key for the second blo...
I am working through the "Computing Arbitrary Functions of Encrypted Data" by Gentry, trying to understand more about Fully Homomorphic Encryption. I'm stuck trying to understand why his "Somewhat Homomorphic Scheme" presented in section 3 is correct. Ignoring the homomorphic aspects of his scheme, I'm struggling just...
According to a definition given by my professor: Message authentication methods verify that the message is from the right sender, however they don't guarantee non-repudiation. To me this sounds like a contradiction, what does "right sender" mean?
In TLS1.3 all allowed algorithms included in cipher suites are AEAD, which means they don't just encrypt but they authenticate too (thus if I don't misunderstand, they give not only confidentiality but also integrity/authentication. So, then...why it's necessary to include a Hash algorithm in the cipher suite? I mean.....
I have just turned 17 and I have been developing in Java for a few years. Recently I have been interested in a language called rust, I have also been made aware of privacy issues by some of my friends. Mainly in order to learn rust but also to learn more about cryptography I decided to start creating an encrypted commu...
I'm using xsalsa20poly1305 for encryption in my program from libsodium. The recommended size for chunks is 4 kB. In that case, poly1305 will have authentication only for the the individual 4k chunks. Not the whole message. I would like to authenticate the whole message again with poly1305 or HMAC-SHA256 or whatever. I...
Suppose I am using user passwords to derive AES-128-CBC encryption key. This key will be used to encrypt some sensitive data for the user so that even the website owner / operator can not decrypt it. Then why should I use PBKDF2 over taking the first 128-bit of the SHA-512 output over the salt and password? If I use PB...
EdDSA, Edwards-curve Digital Signature Algorithm (EdDSA), is a digital signature scheme using a variant of Schnorr signature based on Twisted Edwards curves (source). Schnorr signatures have a remarkable property: linearity. This allows multiple parties to collaborate to produce a valid signature for the sum of their p...
I saw this complicated question and I am not really sure about it, would appreciate your view on it. Is the following build stronger than 2DES or 3DES with 2 different keys (or even normal DES)? $DES(DES(x,k),\overline{k})$ what I think is that in regards to a $2^{56}$ key space, we need to perform the following: regu...
In the HOTP (HMAC-based One-time Password) algorithm the client and the server can have different counter values. Es. if an attacker tries to crack the password with no success. How does HOPT deal with this ?
If I have a headless machine (no mouse movements, no keyboard presses, or user input), without any cryptography CSPRNG APIs, where can I collect entropy from?
According to RFC 5116... If the AD input is constructed out of multiple data elements, then it is essential that it be unambiguously parseable into its constituent elements, without the use of any unauthenticated data in the parsing process. (In mathematical terms, the AD input must be an injective function of the da...
I've used the C++ prog I found on the web to generate the standard Sbox with poly 0x11b, and also modified it to use a lookup table of all the multiplicative inverses of the 256 values, which also works fine. I'm now trying to generate alternative Sbox using polynomial 0x11d, as used in the paper by Das, Zaman & Ghosh...
I started studying EAP authentication framework and I don't understand why was the EAP-MD5 developed. Why not just use the CHAP protocol ? To me they seem the same. Can you explain to me ?
The article Elliptic Curve Digital Signature Algorithm in Bitcoin's wiki talks about signatures having probabilities (as in Signatures are either 73, 72, or 71 bytes long, with probabilities approximately 25%, 50%, and 25% respectively, although sizes even smaller than that are possible with exponentially decreasing p...
in my textbook it is stated, that if we have a message, it's signature using RSA and modulo, we can also sign the inverse of the message. However, it is not explained why can we do so. Could someone explain to me the reasoning?
I am trying to write a simulation of the SPAKE2 protocol in python (just so I can get a better understanding of the protocol altogether). I am reading through the ietf draft here: Datatracker. There's a lot about cryptography I do not understand though and I am having trouble figuring out how to generate some of the va...
If we repeat k, I think there is little chance for s to repeat since user's private key x is random which is also used to calculate s.
Say that a manufacturer wants to label her products in such a way that a third party could verify that the manufacturer is the one that labeled the product, meaning it's not a counterfeit. The manufacturer could have a serial number to each product, and have it signed with some signature scheme. However, this introduc...
Say I selected two large primes p and q for RSA and computed my public key (e, n=pq) and my private key (d). Now, I was careless and compromised my private key (d). p and q were not leaked. Taking into account that (e, n) were already public knowledge, would it be safe to generate a new key pair with the same p and q o...
It seems that crypto_box_easy, generates a random nonce and appends it to the cipher text in libsodium. I understand using the same nonce with the same key can be catastrophic with salsa20poly1305, as such is it bad practice to re-use the same public/private (static) curve25519 keys when using crypto_box_easy? Is it s...
I am new to ciphers and for my assignment i have to implement a stream cipher algorithm without libraries (on my own). So my question is: Does anyone know about any GOOD books which have examples and explanation of implementation?
I was doing the cryptopals challenge 29, and I found something weird. When I try to create a forged hash for a forged message I get always the same hash for different forged messages. def attack(self, hash, message, payload, oracle): for k in range(100): forged = self.glue_padding(b'a' * k + mes...