instruction stringlengths 32 27.2k |
|---|
If given a large set of examples of cyphertext and corresponding plaintext, could AI be trained to decrypt a cyphertext as the examples provided?, and if so, are there any examples online demonstrating this?
For example, lets imagine out cypher is a simple 7-shift ceaser shift, and we have a list of thousands of exampl... |
Sorry in advance as I am not very skilled in crypto. I am a software developer trying to create secure applications.
I have implemented a diffie-hellman key exchange between client and server. The library I am using only lets me create a minimum size key of 64 bytes (512 bit).
During transport messages will be encrypte... |
My understanding of GPG with traditional RSA keys, is that RSA is by definition can be used to both sign and encrypt.
This is because RSA can be directly applied to plaintext in the following form: c = m^e (mod n).
I understand that GPG supports Elliptic Curves now, however, given that ECC generally uses ECDH hybrid ap... |
What's the precise definition for 1-out-of-2 OT? and what's the best way to show that it can't be achieved under unconditionally secure setting?
I am reading about it and just couldn't get my head around it as there's a lot of different OT.
Thanks
|
How many possibilities for a numerical PIN with exactly 9 digits? How
about a PIN with no more than 9 digits?
|
Problem
Assume I have a 40 bytes hexadecimal ASCII string and a 50 bytes random password.
data: a7cd8558a341e3525d060e90fb37975efa8dd519
key: ]*Úf"¢^¨¥GJþPÒYÅ9ÝÁ´!½OïæñÝ{/§@·]%¾âðNQn@:U2çþÇ<uÓ
The data will be AES256 encrypted with the password. The encrypted data will be stored as a key-value pair and that key and t... |
I have read about the Fiat-Shamir heuristic for making an interactive proof of knowledge into a non-interactive proof of knowledge. If I apply this to zero-knowledge proof of knowledge, it seems to me that I would destroy the simulator and therefore the zero-knowledgeness.
Does the Fiat-Shamir heuristic destroy zero-kn... |
In the slides to my information security class it is stated without explanation that a encryption-based commitment scheme defined as follows is broken:
Commit: P outputs c = Enck(m)
Reveal: P sends k to V. V decrypts c and learns m = Deck(c)
Similarly, a hash-based commitment scheme (using cryptographic hash function... |
I'm trying to understand the STS protocol (using the wikipedia page as source), but I don't see how this protocol is any more secure than DH regarding man in the middle attacks.
If Alice and Bob don't know each others public keys, and have no secure channels at all, then an attacker (Charlie) could forge asymetric keys... |
So I want to ask is there any rules for choosing the two primes that's used to generaten in RSA? I mean clearly you can't choose 2 and another super big number, so I want to ask is there any restrictions like those two primes must >=2^(key_length-2) or something like that? (Supposing RSA is also using the first but to ... |
With classic diffie-hellman it's possible do it with more than two parties. Is this applicable to elliptic curve diffie hellman?
I'm guessing not.
With ECDH you have a scalar number as the private key and an x, y coordinate (or just x coordinate in the case of Curve25519) as the public key. You multiply the coordinate ... |
In this paper by Kate et al, a constant size polynomial commitment scheme is described.
The commitment scheme assumes a public reference string:
\begin{align*}
\Big\{
\{ g^{ \tau^i }, g^{ \alpha \tau^i } \}_{i=-d}^{d} \}, \ \
\{ h^{ \tau^i }, h^{ \alpha \tau^i } \}_{i=-d}^{d}, \ \ e(g, h^{\alpha} )
\Big\}
\end{a... |
Assume AES in CBC mode is used to encrypt an arbitrary file. The key and the IV are generated out of secure random data and are both different for each file and of proper length and strength. Then the key the IV are encrypted with RSA. Now the AES encrypted file will be transmitted via an insecure transport from the se... |
I am developing a software with hybrid encryption (RSA-4096 and AES-256-CBC).
The iv and key of an AES encrypted file will be RSA encrypted end exchanged through a different way than the encrypted file. Thats ok for me to this point.
I am thinking about where it is most easy to break the encryption of my own files and ... |
I'm working on the canonical embedding mentioned in
[LPR10] and [LPR13]. What confuses me is that the difference and the relationship between the canonical embedding and the concept of ''plaintext slot'' in other works (e.g., [SV11]).
Let's focus on the $m$-th cyclotomic number field $K = \mathbb{Q}(\zeta_m)$ where $\... |
I am trying to think of a scheme that would allow a user to authenticate to a server, whithout sending the password to the server, and to also derive a symetric key on the client (that also never gets sent to the server), the sym key would be used to encrypt and decrypt data on the client,that gets saved encrypted on t... |
Consider a stream cipher $E(k)$ which takes a key $k$ to produce a pseudo random keystream.
It should have the property that you can easily generate a set of at least 3 different keys $\{k_m, k_0, k_1, \cdots\}$ such that the key stream generated by the master key $E(k_m)$ is the same as XOR-ing all key streams of the ... |
I have read a few tutorials about ECC implementaiton in C. What I am confused is this: Can I encrypt messages with ECC and without the use of any other algorithm, like AES, RSA or should I use them also?
What I mean is this: Can ECC alone can be used for text message encryption, or is it only for key generation?
|
I refer to Canetti et all, "Reusable Fuzzy Extractors for Low-Entropy Distributions", available here.
Paraphrasing the relevant part from §3:-
The locking algorithm $lock(key,val)$ outputs the pair $nonce,H(nonce,key) \oplus (val||0^s)$, where H is a cryptographic hash function, nonce is a nonce, ||denotes concatenati... |
I am attempting to do phase space analysis on Coke Reward Codes that are 14 characters long and composed of only the following 20 characters:
Letters: B F H J K L M N P R T V W X
Numbers: 4 5 6 7 9 0
What I am trying to do is implement a function that takes a string input of a code (ex: "FWR59NR0RR5NHV") and converts i... |
Many interactive ZK-proofs satisfy non-transferability; that is, the prover performs a series of actions to convince the verifier of a certain fact, and this verifier can't use this proof to convince another party that this proof is constructed by him.
My questions are:
In what case can the ZK proof be transferable an... |
Given a PRF $f : \{0, 1\}^n \times \{0, 1\}^n \rightarrow \{0, 1\}^n$, is $f(K, f(K, x))$ a PRF, too?
My hunch is to construct a PRP similar to Feistel ciphers but with the property $f(K, f(K, x)) = x$, and disprove the statement with PRP/PRF switching lemma. However, I haven't found a concrete instance with the desire... |
While revising my CAdES library I encountered some "sealing issue" in digital signatures.
The Win SDK signtool.exe has a /seal parameter which produces 1 authenticated attribute in the signature "Intent to Seal" and one unauthenticated attribute "Sealing Signature" in the signed file.
I 've also seen that in PDF files.... |
Let $x$,$y$,$z$ be permutations. Then public key is $z=xyx^{−1}$ and $y$. Is permutation conjugate search problem easy? if yes, how to find $x$ from $z$ and $y$?
Let be a is Alice's secret key as large number,and X,Y,A=XaYX−a is public key.
encryption Bob pick at random number r,s and B=XrYX−r,C=XrAsX−r,and c=H(C)+m, a... |
Given a set of bit sequences generated by an extractor, what would be a valid setting for estimating the
randomness of these generated keys and what resolutions can be drawn for
that extractor in general? The extractor will only generate bit sequences of fixed length such as 20 bits. Thus, all possible outcomes span on... |
Total Crypto Noob here.
I was wondering why in ECDSA the Signing Key is so much (half of) shorter than the Verifying key?
Lets look at some python code:
import ecdsa
import binascii
signing_key = ecdsa.SigningKey.generate(curve=ecdsa.SECP256k1)
verifying_key = signing_key.get_verifying_key()
print(binascii.hexlify(sign... |
Let $A$ and $B$ be two public permutation matrices.
If $r$ is a secret power of large number, can we easily find $r$ from $A^rB^r$?
|
I'm looking at the SEAL library but I'm trying to figure out what happens in a certain use case.
For example:
Alice encrypts the number 123456 homomorphically and sends it to Bob.
Bob adds 25 and does 3 left rotations on the value. He then sends it back.
Alice decrypts the value and gets 481123.
Following Step (3), i... |
How reasonable would it be to speak TLS over the secp256k1 curve? My initial experiments show that OpenSSL supports it (albeit with special flags, see below): Running an OpenSSL client against an OpenSSL server (or some random node.js server that I found) negotiates the suite ECDHE-ECDSA-AES128-GCM-SHA256 and establish... |
I was looking at this question and i can`t understand this part:
QA = dA G
= 5 (5,1)
= (9,16)
I saw that algorithm used for this was Double-and-add algorithm but i didn't get it. Can anyone explain how can i do this calculation on papir?
|
I don't understand what does it mean by "The probability is taken is over the coin tosses of K."
Does it mean, the probability distribution is generated based on exactly same data but only the function is selected randomly?
So it's the data that ensures the differential privacy instead of the function, right?
|
I am trying to understand the Blum Blum Shub pseudo-random generator originally described in A Simple Unpredictable Pseudo-random Number Generator
As best I can tell the requirements are:
For any $x_i$, only $x_i^2 \bmod 2$ is used (only the least significant bit)
$x_{i+1} = x_i^2 \bmod N$
$N = p\cdot q$
$p \ne q$
$p$... |
I'm trying to develop an encryption technique for encrypting short phrases (such as reversibly-anonymized names) in text. The key-generation and ciphertext-representation details are fungible, but most of the techniques I'm envisioning would be best facilitated by a function with the following properties:
I want to enc... |
I was going through the paper (https://link.springer.com/chapter/10.1007/978-3-319-66787-4_3), and I came across where authors says that accuracy alone is not enough as an evaluation metric and guessing entropy should be taken into account as well (Section 2.4). I do understand how accuracy is measured in machine learn... |
Is this encryption method sensitive to weak keys? Is there any reference in the NIST on the AES key's entropy? (For example, must it have been generated from a TRNG?)
Can I safely use the Microsoft CAPI for key generation? (pseudorandom number generation)
Am I required to use true random number generation?
|
Update: it's actually hmac(secret, time). I'll leave the post as-is, in case someone is ever looking for the hash(secret+time) case (for which I provided some reasoning at least), but for TOTP tokens, this question is a duplicate of Why is HMAC-SHA1 still considered secure?.
TOTP tokens are basically hash(secret+time).... |
Keccak defines a family of hash functions, by building a sponge out of a permutation Keccak-$f[b]: \{0,1\}^b \rightarrow \{0,1\}^b$. This permutation function is parametrised using $b$, which is the string length of the permuted block.
Keccak-$f[b]$'s block is further divided in $5\times 5$ "words" or "lanes" of length... |
Can hash functions be used to transfer and hide ciphertext?
This somewhat similar locked question, "If cryptographic hashes are completely unique, could they theoretically be used to transfer data?", received several cogent no answers, but consider this:
Alice and Bob share a secret:
/p68J5gd3%}"jd9fkg;BtiAraGgsioe2:L<... |
If conjugate search problem of permutation is difficult , then there are next cryptosystem will appear.
A=XYX−1,B=XZX−1,Y and Z are public key.And X is secret permutation. then encryption is C=YZZYZYYZY... at random,and D=ABBABAABA follow to C. c=H(C)+m. Bob send D and c as cipher text.
decode Alice calculate XDX−1=C,a... |
Suppose I have a function $F(x_1,\ldots,x_n)$, where each $x_i$ is of $l$-bits security (suppose each $x_i$ is a binary string of length $l$). At the same time, suppose there are $n$ persons, each one having a value $x_i = b_i$.
I want to write down in a mathematical formula the following: "given $x_1=b_1$, $\ldots$, ... |
I would like to know a protocol which computes the following functionality:
Alice chooses a bit b.
For i = 1 to n, Bob chooses $x^i_0$ and $x^i_1$.
For i = 1 to n, Alice and Bob run $F_{OT}$ with Alice, acting as a receiver, inputting b and Bob, acting as a sender, inputting $x^i_0$ and $x^i_1$, resulting in Alice rec... |
The Niederreiter cryptosystem is a public key cryptosystem using Goppa code. Unfortunately it it is insecure unless it is a binary code. So I thought I could insert random linear codes into randomly selected columns of the public key in the parity check matrix $H'=SHP$ and $H'\,^t$ to make it random. Here $H'$ is byte ... |
What is the recommended key length for DKIM? I'm currently thinking about a 1024-bit key vs. a 2048-bit one.
From the crypto point of view for RSA, 2048 or 4096 bits is clearly recommended--no discussion on that point. Having glanced over various posts, it seems there may be some trouble at the mail or DNS level with k... |
Probably this is very naive question, based on lack of understanding but I was watching a video from Andreas M. Antonopoulos about blockchain, bitcoin and consensus algorithms and he asked for the SHA-256 output of the string Hello!. A guy told him the first few characters, and being Windows/C# dev I decided just for f... |
Is it possible that if a plaintext is encrypted first with a key, $n_1$, and then this ciphertext is again encrypted using the same algorithm but a different key, $n_2$ that the resulting ciphertext could be converted back to the original plaintext with a single key?
For example:
keys $n_1$, $n_2$, and $n_3$
$p_1$ = "p... |
There's a black box that's basically SHA-1, except that the constants (h0, h1,...,h4) are secret. We can pass it arbitrary inputs and get the corresponding outputs.
Given this, is it possible to recover the constants used?
|
Assume that a one-way Hash function is secure and the best way to attack it is by using the brute force attack. It produces an $m$-bit output. Finding a message that hashes to a given hash value would require hashing $2^m$ random messages. Finding two messages that hash to the same value would only require hashing $2^{... |
I have a YubiKey 4 and want to use it to store a private key that should never enter a computer system's memory. After importing the key to the device I understand it never leaves it. Do the signing/decryption operations that take place for plain text using the private key happen on the device's hardware? Also, if thi... |
I'm trying to understand the purpose of tag in AEAD. As far as I can understand, the resulting ciphertext will be slightly longer than the plaintext due to the authentication tag. Will it reduce the security of AEAD if the authentication tag is embedded to the ciphertext(e.g. by performing XOR/modular addition to the l... |
I am looking for asymmetric encryption using SECP256K1. But all over the internet, I see that it also requires AES encryption. Instead of generating an AES secret key, is it possible to encrypt using the public key alone?
|
Is there an asymmetric encryption scheme, or public-key encryption, where multiple recipients can access the data, but in order for one of the recipients to leak the key to the data, they would need to share their private key?
I believe this to be true for most one-to-one public key encryption methods (correct me if I ... |
Was any specific rationale given on why none of the sponge-based AEAD algorithms (specifically NORX, Keyak, and Ketje) of the 3rd round candidates of the CAESAR competition made it to the final portfolio? If so, where can I find additional details?
|
Assume you have some source of $\mathsf{Bern}(1/2)$'s (probably some CSPRNG in practice). What is generally done to sample from $\mathsf{Unif}([d])$ in a side-channel resistant way (assuming $d$ isn't a power of 2)?
For the power of 2 case, it seems clear that you can generate $t = \log_2(d)$ random bits and interpret ... |
I'm following along with my book. Here is an example of a plaintext attack from it:
It is known that:
plaintext = 'friday'
ciphertext= 'pqcfku'
$m$ = 2
We will use this to form the following matrix equation:
$$ C = PK $$
$$\pmatrix{5 & 16 \\ 2 & 5} = \pmatrix{5 & 17 \\ 8 & 3} K $$
Where $K$ is the key matrix. Note th... |
Chacha20 is essentially a hash function that maps 512-bit strings to other 512-bit strings which are in turn xored with the plaintext to create the ciphertext. Of the 512-bit input 128-bit are used for the "expand 32-byte k" constant, 256-bit are used for the key, 64-bit are used for the nonce and the final 64-bit are ... |
Background:
Let's discussed based on published symmetric white-box crypto only, such as Chow's white-box AES.
I only know basic concepts/objectives of homomorphic encryption, such as PHE and FHE. Bring ciphertext into calculation instead of decryption.
Without proper implementation design for real applications, white... |
I am trying to understand the SIMD implementation of TAU function of SM4 which is as follows:
#define SM4_TAU_L1 { \
y = _mm_and_si128(x, c0f); \
y = _mm_shuffle_epi8(m1l, y); \
x = _mm_srli_epi64(x, 4); \
x = _mm_and_si128(x, c0f); \
x = _mm_shuffle... |
If I take a picture with my beloved camera, the RAW file can be put into a blockchain, and thus it will have a unique hash.
If that unique hash is ever spotted anywhere we know it's a copy of my photo.
But if someone wants to steal my photo, they could just change a tiny bit of information in the RAW file, and it would... |
Can someone explain what is a pairing-free group ? There is encryption schemes, for example 1, that qualify there proposed construction as pairing-free group. However, they use bilinear group in the setup phase. Therefore, how we can qualify a work as a pairing-free based scheme.
|
Imagine you are transported back to ~1940. What is the best (i.e. most secure, but technologically feasible) encryption you can think of for widespread (i.e. military) use? How would you implement it?
|
I'm actually searching some particular primitive compatible with Groth-Sahai commitment.
I would like to know a signature scheme (on group elements), such that there exists an algorithm $\mathtt{SigCom}$ such that it takes as input the commitment key $\mathtt{ck}$ , the signing key $\mathtt{sk}$ and a commitment $\math... |
Imagine that you are given a point $P$ so that $P=a\times G$. If you have no knowledge of $a$ is that possible to calculate point $I$ so that $I$ is the modular inverse of $P$?
We know that over prime fields each member has a modular inverse, which means for $a\in \Bbb F_n$ there exists $x$ so that $ax\equiv 1\pmod n$... |
What is Gimli, and how does XooDoo compare to symmetric ciphers such as AES or ChaCha?
I am looking at this library, called charm.
Interesting paper here.
I also note the paper on XooDoo here.
There were no questions on XooDoo on this site, so I'm really interested to have peoples thoughts.
How do these 'permutation' b... |
I would like to hash numbers less than 1000000000, so generally they could be stored on 30 bits. The aim is to obtain numbers that are not reversible, so my initial plan was to use SHA256 (with some salt). However, I would like to keep the output as short as possible, but I want to be sure that there are no collisions.... |
I want to know how to be sure that each prime number can be written in the form $6k±1$. How I can find the prime number that exists after a composite number with this property of prime or other properties of it?
|
It's well-known that the RC4 keystream has significant biases that become less prominent later in the keystream. The most severe bias is in the second byte, which has a 128-1 bias towards zero. Other biases remain, and it's typically recommended to drop between 768 and 3072 bytes of the keystream.
Will dropping one mor... |
Can I create a simple commitment scheme using a secure hash function?
If so, is concatenation with a random secret enough to preserve hiding? (i.e. $C = H( random\_string || message)$)
Thank you
|
I'm trying to implement a protocol in which two parties generate a private/public keypair, where both know the public key, but each party has only one part of the private key and cannot derive the full private key without having the other part.
Can this be achieved by using existing distributed key generation protocols... |
My professor put this on the slides but gave us very little context. It is meant to be an overview of how it works at a high level.
I have a programming background and I get the general idea of attacks like Chosen Plaintext Attack. Be warned I am terrible at maths!
Request: I hope someone can walk through what this is... |
Given an RNG and a PRNG.
We define RNG(k) to mean that the RNG produces k random bits.
We define PRNG(k, seed) to mean that the PRNG uses seed to produce k pseudo-random bits.
Case 1: - Generate n random bits using just the RNG.
bits = RNG(n)
Case 2: - Generate n random bits using the PRNG, and using the RNG as a seed
... |
What is the purpose of SDES algorithm? (Session Description Protocol Security Descriptions)
What are the problems in the way it exchanges keys?
I have tried to search about these quastions but i couldn't find any understandable reasons.
Please help me.
|
Boneh's and Venkatesan's "Hardness of computing the most significant bits of secret keys in Diffie-Hellman and related schemes" defines the Hidden Number Problem (HNP). The HNP shows that computing the most significant bits of a Diffie-Hellman shared secret is as hard as computing the entire secret.
The paper defines t... |
How does the Diffie-Hellman algorithm prevent MITM attack?
I have tried to search about it but i couldn't find any understandable reasons.
|
I'm reading up on the ideal cipher model and can't wrap my head around some basic calculation.
Let $E$ is an ideal cipher with $n$-bit key and $n$-bit block. For each key $K$, $E_K$ is random permutation chosen uniformly random from the $2^n!$ of them. My question is, given an ideal cipher, and $q$-queries to it: $(m_i... |
I am interested in the implications of using AES-CBC in a streaming configuration.
Reading the specifications of a few protocols I notice that when using AES-CBC
they include IV + ciphertext + HMAC in every frame of data sent.
If a stream of data is being sent would it be safe to instead send an IV initially,
but then ... |
I would like to audit how an implementation of an encryption algorithm is really performed with the following given data of the problem:
the encryption mechanism is reversible (this isn’t a signature),
the algorithm is pretended to be AES, but might be implemented correctly or not, or worse something else,
the key is ... |
I was going through Indy-SDK when these two schemes were referenced. I want to know the precise differences between the two.
Indy-SDK links for reference to:
authenticated-encryption scheme
anonymous-encryption scheme
|
An administrator is testing the collision resistance of different hashing algorithms.
Which of the following is the strongest collision resistance test?
A. Find two identical messages with different hashes
B. Find two identical messages with the same hash
C. Find a common hash between two specific messages
D. Find ... |
Given a public key on the P-256 Curve is it correct to say that the public key is 64 bytes long ie. (x,y)?
Secondly is the private key 32 bytes long? if so, how is the private key generated and why is it shorter than the public key?
|
After reading through the specification of the FIPS CTR_DRBG in SP 800-90A (see Section 10.2.1), I got the impression that the output of the DRBG coincides with its internal state as long as no additional input is given.
Let $(K, V)$ denote some previously initialized internal state. Let $E: K \times V \rightarrow V$ d... |
I understand the general notion in play: if my laptop/computer is stolen or compromised I can revoke that particular subkey so (as long as people have updated their keys) they can't impersonate me. However, the compromiser can still read messages intended for me as far as I understand. So, maybe I don't lose signatures... |
Let's suppose I take 3 different types of hash functions and concatenate them for future safety so that: digest = Hash3( Hash2( Hash1( text )))
Does the birthday attack mean in this case that I must double the input data set size of every hash function starting from the end?
If so, does it mean that if the output hash ... |
I understand that the public key in RSA encryption may be computed using Euler's totient function or Carmichael's totient function.
I'm now trying to figure out how the choice of totient function affects the security of the public key, if any. Are there any ways in which a chosen totient function may make it easier or ... |
[And four related questions/examples below:]
2) If a random 256-bit number is XOR'ed with its reverse (i.e. the big-endian version XOR'ed with the little-endian version), does this reduce the security properties in terms of bits, if the result is a palindrome, as there are only ${2^{128}}$ such palindromes in the range... |
In many examples of attacks on public key cryptography, examples of the form $a ^ x = b$ are used, but I can not understand the correlation between this and the multiplication of the generator point of the elliptic curve $Q = xP$.
I have already read a lot, but still I can not understand this. In the case $a ^ x = b$,... |
I've read the manual, and multiple articles / StackExchange posts about this topic, but still can't decide which implementation of Argon2 is best for my use case.
I want to securely encrypt passwords in a database in an unshared environment.
After first pass of the docs (pun-intended) it sounded like Argon2i is recomme... |
If I only need a small number of signatures (perhaps $2^{10}$) for the lifetime of my key pair, how would I calculate the consequent signature size?
Unfortunately managing state for an LMS or XMSS signature would be an issue, so that's not an option.
|
Can a transform lower the Kolmogorov entropy of a true random stream and then restore that stream with out loss.
If not true then this means a transform can not raise or lower the entropy.
|
Given all parties' private keys in MuSig, is it possible to get a combined private key corresponding to the combined public key? I know it's possible to sign a message, but how to get the combined private key?
|
The source from where I learn states:-
CRL (Certificate Revocation List) is the primary means of checking status of certificates offline.
But I can't seem to understand how is it possible for a single device (smartphone, computer etc) to store the status of every single certificate that has been revoked in existence?... |
There are two ways of checking the status of a digital certificate:-
Offline Authentication (CRL)
Online Authentication (OCSP, SCVP)
Several browsers (like Mozilla Firefox) have given up the use of CRL over OCSP.
OCSP and SCVP are susceptible to MITM attacks.
Then which method is used a primary means of checking the ... |
In PCIe Gen 3 on-wards there is 128b/130b encoding used which scrambles incoming bit using a LFSR with polynomial: $$G(X) = X^{23} + X^ {21} + X^{16} + X^{8} + X^5 + X^2 + 1.$$ Is there any way to perform required scrambling on 2 bit in one clock using parallel scramblers, where output of incoming msb will be dependent... |
I'm writing a program that allows two users to communicate over E2E encrypted chat with a secret they have agreed upon in the past.
The process works as follows:
A key is derived from the secret using Argon2id, where the salt is hardcoded in the application.
The key is used to encrypt the user's message using crypt... |
For simplicity let's say I only have RSA and AES on my hands and I want Alice to talk with Bob over a secure channel. With secure I am implying no MITM and Alice and Bob know they are talking to each other and not someone else.
When Alice wants a secure channel with Bob, Alice will ask Bob for his RSA public key, sign ... |
I have an application that stores data on the devices. Currently AES/CBC/PKCS5Padding from javax.crypto.Cipher(see reference) is used to encrypt the stored data.
The padding isn't verified manually. Does that make the process vulnerable to Padding Oracle attacks?
Would the process benefit from using AES/GCM?
|
I want a function $y = f(x, len)$:
$x$ is the seed. $y$ is the output. $len \in \mathbb{Z^+}$ is the length (bytes) of $y$
Select a seed string $x$ to generate a string $y$.
For each same pair of $x$ and $len$, the value of $y$ is same.
seed should have a reasonable short length. $y$'s length may support a certain ran... |
Yes, another one of those "I have found a great password-generation strategy" waiting to be shot down!
It seems that although diceware aims to be a secure and user-friendly password generation method, there is a consensus that its output is not typically user-friendly. Over the years I have read many posts asking how ... |
I am doing some research on differential cryptanalysis for my master thesis. I analyzed some toy ciphers like the one in the popular tutorial about differential and linear cryptanalysis from heys Link. I need a guess on the lower bound of the number of characteristics which could be found on a complete search for all c... |
Public-key cryptography was not invented until the 1970's. Apart from the idea not existing earlier (as talked about here), is there any reason it could not have been used earlier? For example, are there forms that are easy enough to perform by hand but complicated enough to not be solved (easily) by hand?
|
Let's say I have a private key x with a corresponding public key y. If I encrypt x as E(x), is there a zero knowledge proof I can use to show that E(x) contains the private key for y?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.