instruction stringlengths 32 27.2k |
|---|
Recently, I've been wondering what happens when I combine two stream ciphers $f_1$ and $f_2$ by xoring the keystream, so the final cipher would be:
$C = P \oplus f_1(K_1) \oplus f_2(K_2)$
$P = C \oplus f_1(K_1) \oplus f_2(K_2)$
Obviously, the keystreams shouldn't be the same because they would negotiate each other, so ... |
Is there a way to prove the accuracy of computations performed on homomorphically encrypted cypher text?
|
I am studying the ABE for my masters theses however I want to calculate the key and it's strength. I have done a research about the KP-ABE and I want to know the size of the key and how to determine it's strength because I want to decrease the key size yet keep a good security as well.
What is the key size of attribute... |
A friend described this cipher to me the other day, but if it has an official name, I'm unaware of it.
The same 26 cipher alphabets that are used in the Vigenère cipher are used here, but rather than using a code word to determine which alphabet is used for a given character, the previous characters of the plaintext a... |
I have been told to move the question to this forum in order to get a better insight, so here we go:
Reading some questions in this forum I encountered this answer mentioning IND-CPA as a requirement for ciphers. It got me thinking about this paper I recently read, where a formal model of the Honest-But-Curious advers... |
I know it sounds ridiculous, but hear me out. We know that good hashing algorithms would generate hashes that are pretty much unique. If, in the future, we create a perfect (or just really near perfect) algorithm, could those hashes be used to represent larger chunks of data in a totally unique way? If they truly were ... |
OK It's cringe time (or hopefully not)
I know this is probably a variation of an old and dragged out question or so you may think but let me ask away and hopefully get some insight.
Google a while ago famously changed from AES to RC4 because of BEAST.
RC4 however, is riddled with all kinds of leaks and problems that ar... |
I have a new cipher, and I want to get it properly vetted, but I don't have a strong way to prove its security properties. I'm an amateur without ties to a strong cryptographer/university. I have attempted a few indistinguishability proofs, but these are "back of the napkin" proofs and are likely not rigorous. (I ha... |
This questions is re GCM block-mode of AES. Assuming the TAG is cut to t bits, how can the strength of the cipher be calculated, that is, what is the Advantage of the cipher against CPA attack, and after how much authenticated data a new key has to be exchanged?
|
Given a PKI infrastructure with a root node that signs CSR's for nodes Alice, Bob, and Carol. Is it possible for Alice to encrypt some information, store it publicly somewhere, then later Bob or Carol can decrypt that information, without Alice, Bob, nor Carol directly communicating?
The only thing they have in comm... |
We have some simple PRNG, like a LCG or LFSR. Easiest is one that follows a output state, transform state cycle. Let's call that cycle an "iteration", and one of these outputs a "word".
Knowing the PRNG used, and all parameters including the starting state, we want to take a given word, and assuming it does appear in t... |
Suppose we define the "hard to invert" part in the definition of one-way functions differently:
A function $\ f : \{0,1\}^* \to \{0,1\}^*$ is called uninvertible if it is easy to compute $f$ but there does not exist a PPT (polynomial time) algorithm $\ A$ such that, for every string $x$, on input $\ (1^k; f(x))$, $\ ... |
I want to extract coefficient $A$ and $B$ from Curve25519 represented in Montgomery form as $B v^2 = u^3 + A u^2 + u$.
What are the $A$ and $B$ coefficients of Curve25519 in Montgomery form?
|
Suppose we are given two one way functions $f$ and $g$. We define a new function h that is the concatenation of f and g. That is, $h(x)=f(x), g(x)$, where the comma indicates concatenation. We want to figure out whether this is a one way function or not. My teacher tells me this is not true generally. I know it is true... |
I have some javascript, which generates new ECDSA public-private keypair.
However all the resulting public keys which I generate seem to have fixed prefix.
This seems strange to me, since the beginning is always the same. Is this correct? Or should I expect all pub keys to be more random?
Here is example of generated p... |
I am taking a course on block ciphers and recently I have faced up with such an exercise: if an original AES's highly non-linear Sbox is replaced by a linear substitution (see example below), how one can attempt to break the ciphertext?
Complete text of the exercise looks like this: there is a 5120 bit file (40 AES blo... |
I am doing a research for encrypting data, I found many research doing multiple encryption using DES and RSA ? but in symmetric cryptography the best algorithm is AES so I need to do multiple cryptography for data using both algorithms ? Is there any rules to follow this way specially in the key length ? any recommenda... |
Consider this scenario:
Alice gets a Rubik's Cube and peels off the colors from each piece. She then writes a small message on one of the faces of the cube and fills the remaining pieces with random letters. Then, she scrambles the pieces in a way that was pre-determined between Alice and Bob. And finally, she ships th... |
There are number of definitions completely confusing me.
in https://en.wikipedia.org/wiki/CCM_mode we have
"As the name suggests, CCM mode combines the well known CBC-MAC with the well known counter mode of encryption. These two primitives are applied in an "authenticate-then-encrypt" manner, that is, CBC-MAC is first ... |
Quantum Key Distribution protocol is a technique that allow two parties to share common secret key for cryptographic purpose and defined as being secure, by definition. But I am still wondering what is the motivation behind quantum key distribution with Continuous variable ?
|
Alice publicly shares encrypted message $E_k(m)$.
Alice publicly shares the key encrypted with Bob's public key $E_\mathit{bob}(k)$.
Alice wants to create a Zero-Knowledge Proof that this is indeed the key that unlocks $E_k(m)$ encrypted with Bob's public key, such that anyone can be convinced that Bob can now know th... |
Short version
Is it possible to accelerate hashing process by computing several hashing together in a "smart" way?
Long version
It's generally true that the algorithm complexity of several problems together is smaller than one problem alone.
A concrete example is Fast Fourier Transform. Given N points (assume N is powe... |
I have a bootloader on a small device (Cortex-M0/M3). I want to publish encrypted firmware updates, that can be installed on the device, using the bootloader. The whole point of the encryption is to probit to make a copy of the firmware or to install unauthorized software. The device provides some means of readback pro... |
A group of 30 people who wish to establish pair-wise secure communications using symmetric-key cryptography. How many KEYS need to be exchanged in total?
|
I'm considering using zkSNARKS for a project i'm building. I have some questions about the practicality of such algorithms:
Does a standard secure implementation exists?
What is the complexity for the generator, prover, and verifier procedures? What does it depend on?
Is it efficient in practice on normal computers (c... |
I think until public key $\mathsf{pk}=(b=-[as + e]_q,a) $ is broken, Ring-LWE is secure where $a$ is uniformaly random polynomial, $e$ is an error sampled from gaussian distribution with std=$\sigma$ and mean $\mu$=0, and $s$ is a secret key of hamming weight $h$.
$\mathbf{Question }$
Why is error needed for encryptio... |
Even after goign through lot of specs I failed to understand how CBC-MAC works, specifically in case we have message not aligned to 16 bytes. Are there any padding bytes?
|
$\DeclareMathOperator{\GF}{GF}$
I cannot figure out how should I determine the matrix for transmission over $\GF(2^8)$ to $\GF(((2^2)^2)^2)$ in compact hardware implementation of inversion based 8-bit s-boxes.
In https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=8&ved=0ahUKEwjTrd3xsPzVAhVD5xoKHbHWDVAQFghUM... |
Is it proven that breaking RSA signature is as hard as breaking the RSA encryption, considering the same key size?
I know that they both are based on the RSA function, but I believe that, as always with cryptography, the answer can't be that simple.
First, technically, RSA signing and RSA encryption use different expon... |
Consider Shamir's No-Key protocol. What if you substitute the asymmetric operations with XOR, each party using an ephemeral OTP.
It's symmetric, so you could apply the protocol scheme as if it were homomorphic
It's much faster than Shamir's solution using public key crypto
Would this still be a valid and comparably ... |
I am playing around with PyNaCl to get a bit into cryptography atm.
Now I wrote two scripts to encrypt a file with a secret key and then decrypt it again using that key. The encryption part works fine but I am having trouble with decrypting the file again.
I get the error nacl.exceptions.ValueError: The nonce must be e... |
Please, I would like to encrypt word not more than 5 letters such as (GO, HI, APPLE, EYES) and my key length just (40 bits only), please I am looking for a suitable symmetric algorithm that it can be lightweight, fast as well as less processing required so it can suit my mechanism?
Please any suggestion and sorry for m... |
Many elliptic-curve cryptosystems today use GF(p) or GF(2^m).
What if, say, we use big floating numbers with the classical point addition formulas - is a cryptosystem possible to build on that?
|
I know ECDSA and ECDH are used a lot but what about the ECIES? Is it used or specified as an option in any protocol?
|
I need to analyze the output of rbsec's sslscan which reports a server's SSL/TLS configuration as reported by OpenSSL.
I'm interested in the Certificate's Signature Algorithm in particular, and I was hoping to find a complete list of possible values for this entry. During some quick tests, I saw that sslscan reports th... |
Trying to understand some crypto terminology while looking at processors. I figured if a processor supports "up to RSA-4096 signature verification", that it would use a key that is 4096 bits long. However, in the same reference manual it says that the RSA key sizes supported are 1024, 2048, and 3072 bits. Does this ... |
I'm designing a system in which a password is used both for logging in as well as for encrypting some payload.
To encrypt a payload I derive a key from the password. Very straightforward so far.
Since that encryption should be end to end, the password is not sent to the server, but it is hashed first and then sent to t... |
I am writing a password generator in Go, but I want to make sure I am avoiding modulo bias.
My solution is to get a random number from crypto/rand in the range [0, len(alphabet) ** passwordLength),
and then encode that into the alphabet by dividing by len(alphabet), and using the remainder as an index into the alphabet... |
I am working on a project where I want the user to be able to create random data. For that I use a cryptographically random generator (Java's SecureRandom, which uses OS entropy source if available). Additionally I will seed this PRNG with a true 16 byte (or is more needed?) random number (from e.g. random.org). One se... |
I am pondering, how each of the four functions that a full AES round does consist of (Add Round Key, Substitute Bytes, Shift Rows and Mix Columns) add to the confusion and diffusion of the full AES.
My understanding would be
Add Round Key: Confusion
Substitute Bytes: Confusion
Shift Rows: Diffusion
Mix Columns: Confus... |
Sorry for the newby question but would this work: Alice encrypts a message X with John's public key to form Y. Alice then encrypts Y with Bob's public key to form Z. Alice then sends Z to Bob and John.
Would I be correct in assuming that to decrypt Z, Bob would have to use his private key on Z to get Y. After this J... |
How can avalanche effect be calculated? I would in particular want to know what platform or IDE can be used to calculate the same?
|
I'll start off by saying I'm a noob with respect to software security but I've been reading about security models for a while. Also, I'm afraid some people would just say "go and hire a security expert" which is probably the most correct way to do it but we're a tiny start up and I'm going to have to implement the secu... |
I'm implementing an application that from a password has to derive two keys, one for authentication with the server, one for encryption. I'm using Java, with JCA and Bouncy Castle.
So far, to generate a key from the password I was using PBKDF2, like this:
SecretKeyFactory secretKeyFactory = SecretKeyFactory.getInstance... |
Assume I'm using a cryptographic algorithm to pseudo-randomly generate a string that is specified to be 16 characters long. The string will be used as a passphrase when encrypting a file.
So, for instance the string is:
Z±¨Û‹'bó£´µ¼
The hexadecimal equivalent of that string is:
0x5AB1A81CDB8B279D62F3A3B405B51DBC
Is ... |
I wonder if there are secure cryptographic hash function $H$ and encryption function $E$ such that: $H(E(m)) = E(H(m))$ for all $m$.
Do such functions exist?
|
are all elements of ZpxZp in ECC (elliptic curve) definite over Zp ?
otherwise: assume G a base point of ECC and n the order of G.
why n is equal or nother to p*p ? (p a prime number).
(Think to a Bitcoin Curve: y^2 = x^3 + 7).
|
I was wondering about the difference between these two terms...
What is the difference between a digest and a hash function?
|
On page 29 of Book Efficient Secure Two-Party Protocols by Y. Lindell and C. Hazay, there's this proposition:
Let π be a protocol that securely computes a functionality f in the presence of malicious adversaries. Then π securely computes f in the presence of augmented semi-honest adversaries.
There's a proof followin... |
Can an RSA signature of a randomly generated seed be used as a secret material (for further protection of some data)?
That sounds like some sort of KDF - but here built on top of the RSA signature operation, instead of the encryption/decryption operation, that is typically used by KDFs. (Or are there some known KDFs th... |
I am a relative crypto noob; please aim your answers accordingly. :)
I'm planning to port the ISAAC CSPRNG algorithm to modern C++. I'm looking at Bob Jenkins' reference implementations: http://burtleburtle.net/bob/rand/isaacafa.html
As I understand it, ISAAC has an internal state (mm) of ~259 uint32s, and it uses that... |
I am taking a class on security systems. My professor considers CBC to be a stream cipher mode, like CFB and OFB. Most sources I have read do not agree with this, so I asked my professor about this, and he claims it is usually called a stream cipher mode. Is this true?
|
From what I see, many server and client RSA certificates in the real deployments have the "key usage" mask containing both digitalSignature and keyEncipherment.
Isn't this a bad (that is, potentially insecure) practice, given that there's a general guideline to use separate keys for different purposes?
As an example of... |
I have an application where I have a set of primitive units, $P = \{p_0 ... p_n\}$ (they are byte-arrays, in my application).
I want to be able to create a hash value $H(S)$ for any subset $S \subset P$, such that:
I can update a hash without knowing what it hashes. So given $H(S)$ and $T$ (where $S, T \subset P$), th... |
I am wondering what is the security loss or consequences of accidentally misusing an HMAC API library in this context:
Regular, correct HMAC:
HMAC(K, m) = H((K' ⊕ opad) || H((K' ⊕ ipad) || m))
Misused HMAC (the inputs to HMAC were accidentally swapped):
HMAC(m, K) = H((m ⊕ opad) || H((m ⊕ ipad) || K))
In this context... |
I am trying to show IND-CCA1 does not imply NM-CPA. From what I have read the "classical" proof goes by taking an IND-CCA1 scheme $E$ and modifying it so that the encryption of the inverted plaintext is appended to its ciphertext: $$E': m \mapsto (E(m), E(\bar{m}))$$
It is clear $E'$ is not NM-CPA since just swapping t... |
A checksum is a small-sized datum derived from a block of digital data for the purpose of detecting errors which may have been introduced during its transmission or storage. It is usually applied to an installation file after it is received from the download server. By themselves, checksums are often used to verify da... |
What are different components of Cryptanalysis. I can't seem to find them. Are they the same as Cryptosystem or is there any difference.
|
Suppose I run a fully homomorphic encryption scheme (FHE) on a cipher text c, generated by running AES on plain text m and get c' as the output.
What would the output be if decryption of AES is run on c'? Would the decryption of c' using AES key result in a cipher text that decrypts to m if the decryption function of t... |
Maybe, some of you remember having to pick one person during playing as kids. That person would than have to catch the others for example. The methods to pick given person often would either depend on a "random" number one of the kids picked or on other factors like the shoe size.
Inspiried by some children playing, I ... |
The first CP-ABE scheme in [BSW07] gave an example how to present a numberical comparison (e.g., a<11) to a Boolean access tree. But it seems like this feature is not implemented in Charm.
In the paper, the access policy a<11 is presented as:
("0***" OR ("*0**" AND ("**0*" OR "***0")))
And one attribute a=9 is split ... |
Say some random person manages to, by sheer luck, find 2 messages with the same hash. There is no systematic way of creating more such pairs of messages that produce collisions.
How much would this one pair of collision producing messages affect the security of the hash function?
|
To show that $m^{ed} \equiv m \pmod{pq}$ with $de \equiv 1 \pmod{\phi(pq)}$ and $p\neq{q}$,
Choose $e$ coprime to $\phi(pq)$ so that $\gcd(e,\phi(pq)) = 1$ and
$$m^{\gcd(e,\phi(pq))} \equiv m \pmod{pq}$$
Using Bézout's identity we expand the gcd thus
$$m^{\gcd(e,\phi(pq))} = m^{ed + \phi(pq)k} \pmod{pq}$$
where $d$ app... |
I am pretty new to cryptography and I have been studying up on TOTP (Time Based OTP) and while I have learnt how the computation works, I'm unable to figure out why using TOTP makes a system more secure.
Here's what I have understood. TOTP is used for 2FA, so the first factor would be your username and password. This a... |
I've recently looked into fundamentals of RSA and think I understand how it works. However, there's one basic problem I can't seem to figure out. If someone received ciphertext for a given message, what is to stop them from sending the same message/ciphertext to other nodes in a network and pretending to be the private... |
In terms of complexity classes, we assume that NP = RP. In other words, we assume that there is a randomized algorithm that solves a NP complete problem (and through polynomial time reductions, all of them in the class ) in polynomial time (assume quadratic ) with high probability. Also assume that the algorithm c... |
Consider everyone's favourite pseudo random number generator, RANDU where V is the output of any successive iteration.
$$ V_{j+1} = 65539 \cdot V_j \; mod \; 2^{31} $$
I've purposefully chosen RANDU because it's not so good a PRNG, but works well in my example. Such linear congruential generators can be easily inverte... |
I am having a set of random numbers and I want to calculate entropy of them. I searched many entropy calculation formula, but I didn't get it. Can you elaborate a little bit?
|
The meaning of "one-pass authentication" as well as its difference from "two-pass authentication" has not been explained to my satisfaction. CCM mode, EAX mode, and HMAC are examples of the first type; OCB mode and GCM are examples of the second type. How do the two differ?
Suppose we have a block cipher mode of operat... |
Is it safe to use a KDF implementation in order to store passwords?
More broadly, is this standard? Do IT-companies really use KDF? Or do they usually rely on other algorithms?
If you have any practical example for the second question, I would appreciate it.
|
Protocols that use $\mathbb{Z}_{p}^*$ arithmetic often choose $p$ to be a safe prime ($p = 2q + 1$, for prime $q$) or to have the Schnorr group form ($p = rq + 1$, for prime $q$). I understand that the reason for this is to prevent the Pohlig–Hellman algorithm.
It appears that both are safe as long as $q$ is big enoug... |
This is my current understanding of how Quantum Cryptography works: (The first bit is Quantum Key Distribution)
Alice sends a beam of photons to Bob through a quantum channel such as an optical fiber. Each of these photons represent a bit of information (0 or 1), and have been polarised in some way (rectilinear or diag... |
I am not sure whether crypto.SE is the right place for this question, but I assume this is closest to on-topic here.
I am doing personal research on cryptography using elliptic curves. I can see that many projects starting to utilize deterministic key derivation (my terminology may be off here, see below what I mean by... |
In Quantum Key distribution, it is my understanding that when Eve tries to intercept photons being sent from Alice to Bob, she has a 50% chance of using the correct polarization filter, and so 50% chance of getting the correct bit information. Let's just say hypothetically that she somehow gets all the photons she inte... |
I read some specifications/norms regarding ECDH. I noticed that most norms do not require to check that the public point is actually on the curve.
This puzzles me a bit. Isn't it necessary to make this check for security reasons?
An additional puzzling fact is that the JavaCard API does not have a function to check if... |
Assuming we are in the information theoretical setting, whereby there is no bound on the computational power of an adversary. Does this mean that the standard definitions for DDH, RSA or QR do no hold in that setting, because the definitions assume some bounds on the computational power of the adversary?
|
Is it possible to achieve forward secrecy using a one way communication channel with pre-shared secret?
I have a setup where I need to send some information across a unsafe channel between server A and server B. This communication can only go from A to B so no handshake or two way key exchange is possible.
I could simp... |
This is only the authentication half of a block cipher mode of operation that provides authenticated encryption. The part that provides encryption is left out (it can be CBC, PCBC, ECB, or whatever).
Suppose that:
$E(k,x)$ is the encryption of data block $x$ using key $k$.
$D(k,x)$ is the decryption of data block $x$ ... |
Imagine we have $g^x$, $a$ and $g^b \in \mathbb{Z}_p$. Is it realistic to compute $g^{(a+x)b}$ without knowing $x$ and $b$? Or is it equivalent to solving the Discrete Logarithm problem?
|
I found a signing algorithm while analyzing obfuscated source code.
I only have a basic knowledge about cryptography. I want any clue that can help me to figure out if is a known and named cryptographic algorithm or a variant, if is strong and breakable, or how the signer generates the signature.
The point is if this ... |
NIST SP 800-90a defines the CTR_DRBG in section 10.2.
There is a comment within the document that I don't understand.
Let's assume we want to achieve a security strength of 256 bits, using as underlying algorithm AES-256 and we do use a derivation function.
Therefore in Table 3 the entropy string is supposed to be with... |
I recently visited the "Museum of Flight" where they have an old SAM 970, previously known as "Air Force One".
Inside there is a comm station with many buttons designated "Secure Voice", as can be seen on the lower row of controls in the attached picture. The plaque says "During the Johnson and Nixon eras, "Air Force O... |
Could someone write Shor's algorithm for solving the discrete logarithm problem and how it could apply to elliptic curves in a few, easy to understand steps? I have a basic understanding of quantum computing, but not enough to understand his paper.
|
first of all: Im pretty paranoid.
I am creating a seed on my linux server using the following command:
cat /dev/urandom |tr -dc A-Z9|head -c${1:-81}
Since I don´t have any local linux systems, I connect to my external server via SSH.
Now, I got this (probally unjustified) fear, that my seed, although being transferre... |
I am reading up on ECC and having trouble understanding how these are related.
In a finite field, all point operations are taken modulo $p$.
$n$ is the order of the generator $G$ — which apparently is the number of different points on the curve which can be generated by multiplying a scalar with $G$. This is clear. Bu... |
Consider each of the following encryption schemes and state whether
the scheme is perfectly secret or not. Justify your answer by giving a
detailed proof if your answer is Yes, and a counterexample if your
answer is No.
Consider an encryption scheme whose plaintext space is
$\mathcal{M}=\{m\in\{0,1\}^\ell \mat... |
I've had a thought and I'm wondering if this would be a useful way to devise and distribute a one-time pad. It relies on a digital dead drop and a hash function.
The digital dead drop could take a variety of forms.
For wide distribution it might be a Twitter, Facebook, or Instagram feed, a cloud storage container (Dr... |
The definition of a pseudorandom function is:
Let $F:\{0,1\}^*\times \{0,1\}^* \to \{0,1\}^*$ be an efficient,
length-preserving, keyed function. $F$ is a pseudorandom function
if for all probabilistic polynomial-time distinguishers $D$, there is
a negligible function $\text{negl}$ such that:
$$\bigl|Pr[D^{F_... |
Assume that an attacker has a special purpose application specific
integrated circuit (ASIC) which checks $5\times 10^{8}$ keys per second, and she has a budget of $\$1$ million.
One ASIC costs $\$50$, and we assume $100\%$ overhead for integrating the ASIC (manufacturing the printed circuit boards, power supply, ... |
Why is the following not cryptographically secure?
Seed the algorithm with 32 random bytes S[0].
S[0] --hash--> S[1] --hash--> S[2] --hash--> S[3] ...
| | | |
hash hash hash hash
| | | |
v v ... |
NIST defines a lot of interesting applications of sponges in FIPS 202 and NIST SP 800-185 like the XOF cSHAKE128 or the MAC scheme KMAC.
All this schemes come with a security guarantee and are explicitly based on a sponge using Keccak as its permutation.
This leads me to two questions:
Do these constructions really re... |
An encryption scheme consists of the following data
a plaintext space $\mathcal M$
a ciphertext space $\mathcal C$
a key space $\mathcal K$
a key generating algorithm Gen
encryption and decryption algorithms $\operatorname{Enc}_k$ and $\operatorname{Dec}_k$ for each key $k\in \mathcal K$
I would like some clarificati... |
When calculating prime numbers $p$ and $q$ for an RSA private key, one of the requirements is that $\gcd(p-1,e)=1$ and $\gcd(q-1,e)=1$, where $e$ is the RSA exponent (typically 65537).
I'm curious how often it happens in practice that a randomly generated prime number happens to not satisfy $\gcd(p-1,65537)=1$. Are the... |
I am going for my ethical hacking exam soon and I still can't get my head around why symmetric key encryption is classed as "Private/Secret Key encryption" when symmetric encryption uses the same key and asymmetric encryption (Public Key) uses a public and PRIVATE key.
I just remember by thinking "As symmetric encrypti... |
I've looked at a few previous posts on this site but I'm still struggling with the concept of keyspace. Specifically I'm following a coursera course but I think it's probably too advanced for me as I'm failing to understand some numbers.
In the course it talks about a substitution cypher in an alphabet of 26 letters. T... |
I have devised the following encryption algorithm and would like to know if it is safe. The goal is to use it to encrypt cookie values. I thus want to keep the encoding overhead as small as possible.
The encoding steps are as follow:
Append 3 to 5 random bytes to the value. The number of random bytes is encoded in the... |
This might sound pointless at first, but I want to know if it's computationally feasible to generate the same resulting session key in 2 different DH key exchanges. The purpose would be for a man-in-the-middle attack where both of the unsuspecting target users check to make sure they're using the same session key.
The... |
Lets suppose my messages are composed like this: unique_message_nonce + encrypted_message + mac
Because I don't have an AEAD-scheme, I can encrypt and authenticate my message in two ways:
Use authenticated-encryption for message:
let key = KDF(key: master_key, info: "Key:" + unique_message_nonce)
let nonce = KDF(key: ... |
Assume I am the attacker. I want to break the plaintext by performing the padding oracle attack on AES CBC mode. I know the following information:
The ciphertext c
The length (bytes) of plaintext n
The AES padding uses PKCS#7
The 128-bit (16-byte) IV
How to break the plaintext p?
|
I'm trying to implement hashing on both client and server Sides for my web/mobile Application.
On the client side, I implemented the slow hashing algorithm (bcrypt)
On the server side, I tried to use a fast hashing algorithm (MD5)
Here's what I did:
The user enters the password in my app.
The password is hashed on t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.