instruction
stringlengths
32
27.2k
The database provider HIBP has 4 billion stolen passwords, and wishes to offer an API for websites to use during new-user signup (and password change) operations, so they can refuse to allow users to select a password that is known to have already been stolen. HIBP is not trusted. Does a way exist for a website to ask...
I conducted a software based experiment for encrypting difference size of images using AES and DES. However unexpectedly DES encryption speed was higher than AES. is it possible that DES is faster than AES?. I also search the literature but could not come up with clear conclusion on this matter. Thanks
I have a 'for fun' project, which is a pure software based redesign of the Enigma I. I'd like to compute the key length of my design, but I need some help with that. I have a write-up here (see section 1), but in summary: Conceptually it's a rotor based system, that can take any number of rotors (i.e. as set by the...
If we view the certificate chain using Firefox, we can see the certificate signature of "server certificate" and its "intermediate-CA" right after the "certificate signature algorithm" in the certificate field In the packet capture, this is returned by the server: 1) server certificate, its public key, its certificate ...
Schnorr signature is mentioned as a promising upgrade to bitcoin to improve scalability. It support multisignature, several signatures can be aggregated into a single, new signature. But I fail to find any information on how is this made possible mathematically. Some of my questions on the statement "several signatures...
I am running a simple AES encryption operation both on desktop(using core i7 processor, 16GB Ram, eclipse and JDK8) and mobile(Android emulator using Intel atom X84 processor 2 GB ram, Android 6.0). I am surprised with the result when mobile emulator took significantly less time than desktop for encryption operation wi...
The proof is here on page 66, lemma 20. I found the same mistake in other sources also. It claims that GGH decryption will fail only if $\lceil R^{-1}e\rfloor \not =0$. Here $R$ is the "good" private basis for the lattice and $e$ is the small random vector. Rounding symbol means just that every coordinate of the vector...
Need a signature scheme where signer signs with one secret key out of a set of signing keys, but verification can be done using just one verification key.
I have trouble understanding how Reed-Solomon coding can produce same number of output bits than the input was. Twofish uses this technique. I've read the paper, but still can't quite understand how the flattening works. In my understanding, RS should add redundant bits, and the output must be larger than the input. Wh...
To me it seems that a quite safe way of creating activation keys is by using asymmetric encryption, so that the end-user could only reverse-engineer the validation method. This way the company keeps the generation algorithm (and key) safe. Assume one uses RSA encryption with 1024 bit keys. They sign some data with the ...
In order to have an encrypted file who's key can be changed without needing to encrypt the whole file again, I'd like to encrypt the file with a main key ,and then encrypt that main key with another one which the user will keep. My question is - can I also encrypt a MAC (Message Authentication Code) key and store it in...
What padding algorithms are there that are MD-compliment so two different inputs don't pad to the same thing? Which would cause a collision in a hash function.
I need help with the process/commands needed to implement the below functionality: I'm modeling an OTP System, in which the user would request an OTP and the app will send him one. Later the user will use the OTP to use some functionality or something, and the OTP needs to be validated. Constraints: The OTP cannot be...
I was wondering why most "normal/unsafe" crypto hashes like SHA-256, SHA-512, Whirlpool, RipeMD-160, MD5, etc. are HEX encoded. But most "secure" crypto hashes (KDF' ) like bcrypt and scrypt are Base64 encoded. Why? somewhere I heared that Base64 shortend the string for like 20%. Isn't that extremely bad for password...
I've read that a OTP is only perfectly secure if the key is perfectly random, and the pad is never reused. If you encrypt documents using two keys, where one is random but stays constant for some period of time, and the other is only pseudo-random but unique to each message, is the security of the OTP better or worse t...
In the DH algorithm $ a^x \bmod b $ where $ a $ is the generator and $b $ is the prime modulus does $b $ have to be bigger than $ a $ or could $ a $ be larger for example $ 19^x \bmod 17 $ . Because I don't see a problem with the generator being larger because the answer can still only be $ b \ge \text{answer} > 0 $ . ...
My goal is to try and decrypt a single 8 byte block of a Triple DES encrypted data block and in doing so discovering the 8 byte keys that were used. This is mostly an academic exercise but could solve a real world problem. I know the plaintext data is 7 numbers in ASCII encoding with what I believe is a 0x0 padding on...
I heard that the permutation in PRESENT affects all bits after only a few rounds. However, when I looked at it the bits return to their original position after only three rounds. For example, in round-1 bit b1 ---> b16, in round-2 b16 ---> b4, and in round-3 b4 ---> b1; thereafter the cycle repeats. This is the same fo...
I have started doing some reading about power analysis (SPA, DPA), and it is not clear to me in what Scenario one would have to fear such an attack. It appears to me that a typical situation is Scenario A: A key is stored in plain text on a smart card, the analysis is conducted while encryption/decryption request are...
I was trying to use OpenSSL 1.1 (via Ruby) to validate the ChaCha20-Poly1305 test vector from this IETF draft: https://datatracker.ietf.org/doc/html/draft-agl-tls-chacha20poly1305-04#section-7 The relevant test vector is quoted here: The following block contains a test vector for the AEAD_CHACHA20_POLY1305 algorithm...
Say you want to encrypt a large file, perhaps a backup of a database. Encrypting the file will naturally take some time, due to the amount of data. Now, if at any point you want to change the password protecting the file, a simple implementation would re-encrypt the entire file. Another solution is to generate a key K,...
The paper “CRYSTALS – Dilithium: Digital Signatures from Module Lattices” (by Léo Ducas, Tancrède Lepoint, Vadim Lyubashevsky, Peter Schwabe, Gregor Seiler, and Damien Stehlé) introduces a digital signature scheme based on lattices. However, it worries me for two reasons: There is no proof of post-quantum security....
I've read that if the IVs for SHA256 were arbitrary and / or unknown (secret) than a backdoor to predict outputs would be possible. How do the values chosen for the IVs / publishing the values prevent such a backdoor and if the values were arbitrary / secret, how would such a backdoor work?
What does "hard-coded" mean in the context of garbled-circuit? Is it not encryption?
In the Affine cipher, the key $k = (a, b)$ should have the following property, i.e. GCD of $a$ and the modulus should be 1: $\gcd (a, m) = 1$, where $m$ is the set of possible moduli My question is, why it is required that $a$ should have the above property? What is the significance of this? And why is $b$ excluded f...
I am trying to collect several information regarding Security Industry Standards and the FIPS compliance to meet the security standards for our future development system. In this case, we have two systems connected each other point to point through switch. We are interested in encrypting the data to run IO's across the...
I have limited math's knowledge so sorry if this question sounds stupid. I saw many people complaining about AES, Twofish and Serpent that these ciphers all could be crackable in the near future and even today with big datacenters. But all these ciphers use max. 256 bit keys . And because there is no better way of fin...
I am writing a program in python (myself) to encrypt images. I don't want or expect it to be state of the art encryption and safe at the end but i have a problem. The result encrypted image still has a recognizable trace of the original image. I know its because of they way i am encrypting it.... so what my program doe...
For AES-CBC to be CPA secure the IV that is used has to be randomly selected for each packet. If the IV is predictable than the encryption is not CPA secure. Is the same true for AES-CTR mode? that is, for AES-CTR mode the first counter must be random or it can be a nonce? Thanks
I have been researching cryptography for the past few weeks to try and make sense of a few things, but is simply not making any sense for me. If I encrypt a message, send it to another computer, how will that computer decrypt it? It will need to use the same software or algorithem I used. Hence, if the message was int...
In most applications, all passwords are salted independently. In terms of security (e.g. attack complexity), what are the consequences of the following differents approaches: All passwords are salted with the same salt. The application does not use salting, but end users choose their passwords by appending to them a ...
I am given the last round key in AES and I want to infer all round keys and the first round key which is the cipherkey. Can anyone provide an algorithm to do that?
What would be the most efficient way to find two large (2048bit) integers $k$ and $q$ such that $p = kq + 1$ is prime and so is $q$? Is there some standard algorithm that I could use?
I need a bit of clarification about the definition of transcript of a simulator in Zero-Knowledge Proofs. Basically, the way I understood it, the simulator is given access to the (potentially malicious) Verifier as a sub-routine, and the goal of the simulator is produce a transcript that's computationally indistinguish...
Suppose RSA and Discrete Logarithm over any group (including elliptic curves) gets broken tomorrow what other schemes we have for DEPLOYMENT IMMEDIATELY do we have to rescue the internet from collapse? So there is no other alternative and pretty much the internet is dead? I see a lot of alternatives such as SVP based, ...
What we want? Encrypt plaintext with ChaCha20 + ECC on curve 25519 (hybrid cryptography) the result would be a data stracture X. Input: public key on Curve 25519 No authentication required (no AEAD) What is the minimal storage ovehead of producing a data stracture X as compared to the plaintext. What are the required ...
If I'm the second party participating in a three pass protocol (for simplicity, let's say Shamir's Three Pass Protocol) such that: Bob sends me a ciphertext I encrypt it and send it back He removes his encryption and sends it back to me I decrypt it fully Using the information in steps 1 (ciphertext) and 4 (plaintext...
I am considering two login procedures, both via HTTPS GET API: procedure A: Reuqest: https://host/login?id={identity}&time={client_timestamp}&nonce={ramdon_string}&sign={signature} Response: {"stat": 0, "token": "token_string"} Where: id: identity of the request client, which is public (a hardware identity printed on ...
Alice is trading information with Bob. Alice and Bob are in a Prisoner's Dilemma in that they'd prefer not sending their respective key while receiving each other's but would prefer an exchange taking place to no exchange. Is it possible, with or without a neutral third party, to swap two pieces of information while en...
I am currently trying to fully understand Dan Boneh's/ Victor Shoup's proof in their excellent crypto book draft, that the raw CBC construction is a secure pseudo random function family for prefix-free adversaries (see Section 6.4.1). The methodology of the proof is to replace the PRF $E_K: \mathcal{X} \rightarrow \ma...
I want to generate PRP using Fisher–Yates shuffle for array [1,2,3,4,5,6,7,8,9,10,11,12]. I implemented NLFSR_25bit with specific seed for PRNG. (for picking up pseudo-random number in every iteration of algorithm ) Fisher–Yates takes pseudo-random number from interval(i.e (1,i) in every iteration of algorithm ) How...
I've got a question about the complex discard method that has been specified in NIST SP 800-90, appendix A.5.2, steps: Use the random bit generator to generate a sequence of $m$ random bits, $(b_0, b_1, …, b_{m-1})$. Let $c = \sum_{i=0}^{m-1}2^i \cdot b_i$. If $c < r$, then let $(a_0, a_1, …, a_{t-1})$ be the unique s...
In elliptic curve cryptography: If you add a base point P 10 times to itself, do you get the point 10P or the point 11P? So if you want to calculate k*P with k=10, do you add 10 Ps or 9Ps to the basepoint?
Let $H$ be a hash function that is both hiding and puzzle friendly. Consider $G(z) = H(z) \Vert z_l$ where $z_l$ is the last bit of $z$. Show that $G$ is puzzle frielndly but not hiding. This question is from this book, page 50). I'm stuck at proving $G$ as non-hiding. A hash function is hiding if: when a secret valu...
Hi I am new to cryptography and am confused as to how HKDF generates two separate keys from one single key/password. Is it as follows? Key 1: HKDF-Extract(salt, IKM) -> PRK Key 2: HKDF-Expand(PRK, info, L) -> OKM OR is it that Key 1: HKDF-Extract(salt, IKM) -> PRK Key 2: SHA-512(PRK) Where Key 2 would be HMAC-key? Cou...
I am novice here. I am following a lecture series of Prof. Christof Paar and in his lecture of DLP, he states a fact which I did not understand at all. Can somebody please explain it better to me.I understand DLP and DHP independently. The statement goes as follow: "If the only way of solving the DHP requires the DLP, ...
I have 2 end points where I would like to derive the same AES key. Every end point has its own RSA key pair and RSA public key from the other end point, and I would like to combine them somehow on both sides to derive the same symmetric key. How it can be used to derive AES key with the same value on both sides? I am l...
As I understand s box properties, they primarily need high non linearity and low auto correlation. But most importantly for this question, they're not secret. There are many questions on this site asking for help in generating them. And new ciphers always seem to have new s boxes. Why? There are proven numerical op...
So I was wondering about some alternative attack scenario which I thought of when I started to understand KDF's . So lets say you have a cipher like AES and a strong KDF . And the legit user uses a 30 character strong Password : 30-char Pass ---> KDF ( slow stuff : argon2,scrypt ) ----> AES256 And normally the attacke...
Is it possible to have an output consisting purely of one character and does this change the entropy of that output? (If that's even possible to ascertain.) As an example, the Bitcoin cryptocurrency is slowly and inadvertently compiling a list of inputs which produce outputs with successively larger numbers of trailing...
I am reading this paper regarding re-encryption mix nets. I want to implement my own for educational purposes and I am stuck at the initial steps of how I should generate the keys and distribute them. The paper for this step says that "Key generation: all decryption servers jointly generate the parameters (q, g, x, y)...
I'm looking for high-speed SHA-256 implementations, and specifically, ones with low latency; that is, the time between when you submit the message block, and when the output (or internal state) is produced. I've googled it, and the fastest I've found appears to take circa 70nsec; does anyone know of something faster? N...
I always see people warning not to use unauthenticated modes of operation like CBC for AES . Why is that so ? I mean if you use AES-CBC with a random IV you will most likely secure your data . So for what do you need MAC / authenticated modes like GCM for your files . If you cant assure that your data is tampered with...
First, I want to clarify this is not homework. I encountered this question (here How can I prove that a function F isn't a pseudo random function?) while studying for a test coming soon. $F'_k(x) = F_k(0||x) || F_k(1||x)$ $F'_k(x) = F_k(0||x) || F_k(x||1)$ (Here $||$ representing concatenation, $F$ is a PRF). I know ...
As I'm going through the Feistel network in the DES algorithm. While encryption uses a Feistel Network, the input block is divided into two halves left ($L$) and right half ($R$). In each round, the right half $R$ goes through unchanged. But the left part $L$ goes through an operation $F$. I didn't understand why right...
Is there any dedicated research group which is working in energy efficient cryptographic functions for mobile devices. In mobile devices other than tuning a frequency/voltage, network speed any other approach is available?
I am currently working on CipherText Policy Attribute Based Encryption (CP-ABE) scheme. If we see the scheme, we can notice that the Authority may generate a Master Public Key and a Master Private Key(this last used to generate the user's secret keys). Now, is there a possibility in order to certificate this Master Pub...
folks! I'm digging through CONIKS papers and it seems that it is an absolute must to select new tree-wide constant for each update (and to rebuild the whole tree respectively) to prevent parallel attacks through past versions of the same tree structure (like parallel birthday attack for instance). Can't understand why ...
I'm working on an encryption project. Basically, I have some samples of the input values and output values. Both of them are in Hex numbers. The input is a 16 byte Hex sequence and the output is a 64-byte Hex sequence.But there is number in the two sequence. Can it be cipher code?
TL;DR- why can't we have a key cipher greater than 25 in the Caesar cipher? Let's suppose the key is K = 30. The message I want to send is "H E L L O W O R L D" Now converting each letter to a number from 0-25, we get 7-4-11-11-14 22-14-17-11-3. Adding 30, we get 37-34-41-41-44 52-44-47-41-33. But as the cipher text ra...
I have some doubts regarding AEAD ciphersuites and I need some clarification. In the following ciphersuites list: dhe_rsa_aes_128_sha dhe_rsa_aes_256_sha ecdhe_ecdsa_aes_128_gcm_sha256 ecdhe_ecdsa_aes_128_sha ecdhe_ecdsa_aes_256_gcm_sha384 ecdhe_ecdsa_aes_256_sha ecdhe_ecdsa_chacha20_poly1305_sha256 ecdhe_rsa_aes_128_g...
I have this ECDSA private key that isn't very important, but I do not have it in any other format. 008AF2DA031B2DC39FBE418A238EFDA3B10ABC7C77FE12A750BFE899 I also need it in public form with a size of 0x3C. I don't know how to start with this. Of course, OpenSSL chokes on it, but that's because it isn't in ASN.1 forma...
When encrypting a message with a symmetric key, it seems like the best practice is to first encrypt the message, then run the cipher text and key through HMAC, appending the result to the cipher text. The receiver can strip off the hash, HMAC the cipher text and key, and verify that the hashes match. This tells the rec...
Suppose, a message M was found so that MD5(M) = S, where S is the initial state of the MD5 function (0x01234567, ...). Given a hash MD5(m), would this allow computing MD5(M∥m∥padding), where padding is an empty block to get the length right?
I am trying to understand how bits are spread in the PRESENT cipher. The bits that enter the permutation of PRESENT return to their original position after only three rounds. But I am told that in fact the S-boxes also affect how they spread. Specifically, when one bit enters the S-box, two or more come out. I cannot u...
I wrote an algorithm to implement a suggestion in a paper by Ivan and Dodis to convert a regular ElGamal encryption scheme into a proxy re-encryption one (it's at page 6, left column of this but I asked a question related to it on SO where you can see the maths quicker). The part I'm referring to is this one. $$\frac{...
In the TLS 1.2 protocol, the client may send extensions. My question is: what is the format of this field? is it a list? In TLS 1.2 client hello, the standard says: extensions Clients MAY request extended functionality from servers by sending data in the extensions field. The actual "Extension" forma...
TLS consists of sub-protocols including the handshake where the key-exchange is and the record protocol. If I want to use a statement like: both parties negotiate a ciphersuite that defines the algorithms that will be used in the session Is this a correct statement? Can I use the term session in a context that inc...
Being new to Cryptography, I'm having a hard time understanding the basic concepts. I understand all parts except why 4 power -1 has become to 7. Can anyone explain why this is?
I am trying to see if there were any incidents in the past where using PRNG or not actual random scheme leaded to wrong conclusion in research. For example, a lot of fields today use simulations to predict natural science results and I was wondering what are the best practices and if there were any flaws due to bad ra...
For example we have asymmetric signature scheme(RSA or ECC based) and VRF(also can be RSA/ECC based), both of them can be verified using public key of the signer/hasher and also are unique for each message. So what is the difference?
When we read PRNG requirements of the EPC standard, first rule (page 57 in this link) in the documentation; Probability of a single RN16: The probability that any RN16 drawn from the RNG has value RN16 = j, for any j, shall be bounded by 0.8/2^16 < P(RN16 = j) < 1.25/2^16. Does that mean if the PRNG generates 2^1...
I'm trying to find a simple, practical proof-of-work scheme based purely on encryption (due to wide availability of optimized, hardware accelerated AES execution on most platforms, including modern mobile devices). I've considered the following: Let $k_1$ and $k_2$ be two different randomly selected keys. Find a coun...
I have an asymmetric key pair. The public key is stored in many targets. Is there a way to take that private key K, derive a new private key K' with a known value x, sign the code, and then each target can take the same value x and derive a public key that pairs with K' and verify the code? I want to authenticate cod...
Are there any restrictions on the specified output length when using shake-128 or shake-256, to the extent that certain output lengths should be avoided/or not used entirely? Edit: If someone decided to declare an output length equal to 1600 bits would there be a full block showing? If yes, is this of any concern? I...
I am a student of software engineering and working on an encryption method but i also have to look as a hacker on my idea so plz help me that how does a hacker decrypt the encrypted data when the user and sender has key only. Plz note that same key will be used everytime.
I have read that a bruteforce attack (regardless on which block cipher is used) can lead to a false positive if key space is greater than blocks space. It is pretty clear to me that is due the pigeons hole principle (if I have more keys than available blocks, sooner or later I will use two different keys for the same m...
I'm trying to construct a minimal MDS matrix for a toy cipher. I'm not entirely sure, how the various code parameters are tied to my block size, and how exactly is the binary matrix formed, when you have a generator polynomial. I'm also having a hard time in understanding what's the smallest field and matrix size, wher...
This is more "cryptography trivia" than proper cryptography, but I'm curious. In Note on Streebog constants origin, V. Rudskoy says that the constants used in the definition of the Streebog hash were derived by taking a "Streebog-like hash function" (defined in the note), and running it on "12 different natural languag...
I want to check duplicates of secret information which is also already encrypted in our database(using ECC algorithm, one of the std curves). plaintexts can be phone numbers, zip codes, etc. Since it's not possible to query encrypted information without doing a full table scan or building on index on long ciphertext, I...
I had some questions regarding the basics of lattice-based cryptography I was hoping someone could answer: What are the advantages of using a parallelepiped vs a grid? Does a parallelepiped grant us something that a standard grid does not? I only ask as I never see anyone use a standard grid when discussing lattice-...
I have an API which needs data encripted using AES/GCM/NoPadding. But in various posts in the internet I have read that apple has removed the GCM from the common crypto library. Could any one tell a way to encrypt the data using AES/GCM/NoPadding in swift 3?
I've been reading about Zero Knowledge Proofs with some interest, but I'm still unclear if it can be used to solve my real-life problem. I'm wondering if someone can help me understand a little better how they work - intuitively it seems possible. Let's assume I have 3 bank accounts with different balances, 1 balance i...
I'm writing functions in C using OpenSSL and the EVP interface to interact with Intel SGX. One of those functions calculates an ECDSA (with SHA256) signature over some data. The output of the ECDSA signature in OpenSSL is an ASN.1 structure with two integers, which I am assuming to be r and s. However, the data structu...
Basically the idea is to split a key into three parts ($key_a, key_b, key_c$) of which any 2 of the 3 parts can be used to recreate the original key $key_a$: a random number smaller then our original key $key_b$: another number which when added to $key_a$ will result in the original key $key_c$: two components: $xor...
I'd like to reproduce common factor attack on rsa. And wondering how to get as many as possible (milions?) real world rsa certificates. Any ideas?
Wikipedia article claims that physical unclonable functions are superior to ROM because they require less hardware: Unlike a ROM containing a table of responses to all possible challenges, which would require hardware exponential in the number of challenge bits, a PUF can be constructed in hardware proportional to the...
I have an existing application that uses AES-256-CBC for encrypting data blocks, and HMAC-SHA-256 on the plaintext for eliminating duplicate data blocks. For performance reasons, I would like to move to AES-256-CCM and using the resulting authentication tag instead of the SHA-256 . However, this algorithm is designed t...
When SSL was introduced in ~1996, there was only a few CAs issuing certificates for that specific use and a few sites which actually used SSL. Which Certification Authority issued the first SSL certificate and whom was it issued to?
The property of Indistinguishability in the presence of an eavesdropper as described in the following experiment: (tract from: Introduction to Modern Cryptography) It must be interpreted as a scenario of Ciphertext-only attack or Known-plaintext attack? Thanks
I'm reading the paper “COMPARISON OF SCALABLE MONTGOMERY MODULAR MULTIPLICATION IMPLEMENTATIONS EMBEDDED IN RECONFIGURABLE HARDWARE” (PDF) on hardware algorithms for montgomery multiplication for modular exponentiation, and I'm confused as to how the standard radix-2 montgomery mulitplication algorithm (R2MM), and the ...
It's a fact that scrypt and argon2 are the two dominant memory hard KDFs. But which one of them is more recommendable for password hashing? scrypt is older and as far as I know resistant to almost every kind of hardware based attack. But vulnerable to side channel attacks. How strong is argon2 (i/d) compared in the reg...
There is an implementation of RSA in C# .net, but how can people know that this implementation is considering all the secury stuff conserning to RSA? For example I want to know what is the algorithm that they use to generate prime $p$ and $q$, and how the verify that that primes are good primes and they don't need to l...
Could someone explain why it's necessary to have the modulo operation in the Diffie-Hellman key exchange? Let's imagine we do DH without the modulo operation ($A = g^a, B = g^b$). Would that not work, because the logarithm ($a = \log_gA$) is easy to calculate? And why does the modulo operation have to be done with a pr...
I'm working on an IoT project that will control lights and eventually other devices (I know there's plenty of projects like this, but that's not the topic here). Primarily communications will take place over a 900 MHz band radio, probably through an RFM69 type module, or perhaps LoRa. (The radio type shouldn't really m...
I believe I do understand the basics of how the Estonian e-voting system works, but I'm stuck at their vote verification system. In order to get the vote verified, a client needs to encrypt all of the possible vote selections plus some random string with an election public key and then compare the given results with th...
I've noticed that in many Bitcoin wallet implementations, as well as other blockchains, deterministic ECDSA signatures are being used (generally based on RFC 6979). There seems to be some benefits to this: Testing would be easier, as you can have known inputs and outputs. There is no need for a good source of randomne...
In TLS 1.3 draft-21, if there is a ClientHello with a key_share, say, $(G_1, g^x)$, the server can send a HelloRetryRequest to request a new key_share value, e.g. ($G_2, g^y)$. My questions are: When the client send the second ClientHello, does it replace the old key_share with the new one? i.e, does the new key_share...
Is there a method of converting a Bitcoin private key into a 12 word mnemonic seed out of a 1000-2000 word dictionary? I couldn't think of a good way of solving this.
As part of a competition I want to manipulate (or decrypt) a file. I know, that the file contains gzip compressed text and is encrypted with AES / ECB / PKCS5. I also have the plain text and the cipher text of that file. I don't know the secret key. What would be a strategy to manipulate this file, so that afterwards i...