instruction stringlengths 32 27.2k |
|---|
When using PBKDF2, is there a practical upper limit to the iteration count above which we lose security?
Note: If you answer “No”, that's fine. But if you answer: “There can't be an upper limit“, Consider the case of $2^{256}$ iterations using SHA-256.
|
I was watching a Stanford lecture on Vigenère cipher and in it the professor said that – to break the cipher – we assume the length of the key is known. We then break the cipher into groups of this known length and then pick up (successively) the first, second, etc. members of each group and then break each of these us... |
Here is a somewhat silly and atypical problem I am currently facing. Usually, when it comes to hashes, one is bothered with finding collisions and preimages. My problem is, I need to find the IHV used to initialise the word buffers. The message and the hash function output are considered to be known.
Is there a non-br... |
Alice pays Bob $5/month to host a gigantic file for her. She wants to
occasionally verify that Bob is actually hosting the file. To do this,
she selects random blocks from the file, and challenges Bob to hash
those same blocks with her chosen salt. The digests should match.
This is a solved problem because Bob ... |
In openSSL – during RSA key generation – if $q$ is bigger than $p$, they exchange them. Why is that?
|
I am doing a small project in ECC. I have used the following equation for converting Projective to Jacobian coordinates:
$$D = AC\\
E = BC^{2}\\
F = C$$
and also the following equation to convert Jacobian to Projective coordinates:
$$A = DF\\
B = E\\
C = F^{3}$$
where $(A,B,C)$ represents a point in Projective coordina... |
The Wikipedia “Key Size” article states:
The security of an algorithm cannot exceed its key length (since any algorithm can be cracked by brute force), but it can be smaller. … … … Most symmetric-key algorithms in common use are designed to have security equal to their key length.
(emphasis mine)
The book “Secure Pro... |
It is possible to recover the public key from an ECDSA signature values $(r,s)$?
Please explain how this works.
|
Does CCA security imply authenticated encryption?
|
In the answer to the question “What exactly is a negligible (and non-negligible) function?”
There is a part in the explanation that – as far as my knowledge goes – is conflicting:
But instead of brute force, the adversary can guess (a polynomial number of) random values and hope to chance upon the right one.
From wha... |
some authors claimed that computational performance of a pairing-fee scheme (based on scalar multiplication over an elliptic curve group) is about 1000% more efficient than a pairing based one
I would like to know: is there any advantage for a pairing-based scheme?
|
I read the claim, without proof, that it is possible to construct a next bit predictor for any PRNG given an oracle distinguisher for that PRNG and vice versa. How do I prove that?
A distinguisher takes a bitstring and tells you if it was generated by the PRNG or not.
A next bit predictor takes a bitstring and tells y... |
On the Diceware page is this little gem:
For extra security without adding another word, insert one special character or digit chosen at random into your passphrase... Inserting a letter at random adds about 10 bits of entropy.
By that statement, does that mean adding a random character to a random position in a Dic... |
What is Attribute Based Encryption? has a nice explanation what both forms (Ciphertext-policy Attribute-based Encryption and Key-policy Attribute-based Encryption) are.
My question is: what is the motivation/analogy behind Key-policy Attribute-based Encryption?
CPABE can be regarded as a variant of Attribute-based Acc... |
Knuth describes in "the art of computer programming part 2" an algorithm called "M" for mixing two streams of random numbers. This can be used to mix random number streams giving the assurance that the result is still random even if one (but only one) of the streams suddenly becomes predictable.
Now I have a situation ... |
I know there are way better and more tested encryption methods, but I was wondering if the following code could be use for symmetric encryption?
var text = "hello";
var password = "mypass";
var message = hash(text) + encrypt(text, password);
function encrypt(text, password){
var key = hash(hash(text) XOR hash(pass... |
I'm reading through the XEX mode spec, and I want to make sure I've understood the $\alpha^j$ step correctly:
$X = E_K(I) \oplus \alpha^j$
$C = E_K(M \oplus X) \oplus X$
where:
$M$ is the plaintext message
$I$ is the number of the sector
$\alpha$ is the polynomial $2^n$ over the finite field $GF(2^{128})$
$j$ is the b... |
I have written my own AES-128bit implementation in Java, till yesterday I thought it would be alright. (I was working on the encryption)
Now I’m trying to decrypt my encrypted cleartext, but this fails..
So, I hope I can ask such questions on here..
My Cleartext is: abcdefghijklmnop
This will be converted to the State ... |
I'm studying this white-paper: http://jessekornblum.com/publications/di09.pdf
The author says that using AES-CCM with the external key (highlighted in green at page 9, figure 4) and with the nonce at offset 0x3662B8 (highlighted in red, figure 5) you can decrypt the data at offset 0x3662D4.
I don't understand how AES-C... |
Protocol: Coin Flipping over telephone
Hypothesis:
Alice and Bob have agreed:
a one to one function $f$ which is easy to compute $f(x)$ from $x$ and while given any value $f(x)$ it is nearly impossible to find any information about $x$.
an even number $x$ in $f(x)$ represent HEAD and the other case represents TAILS.
... |
Based on what mentioned in the paper "Pairings For Cryptographers"
http://www.sciencedirect.com/science/article/pii/S0166218X08000449
the two inputs of a pairing map are two members of two additive groups on elliptic curves, while the output is an element of a multiplicative group on a finite field.
I would like to k... |
Given a (bad) modification of DSA where the hash function is the identity ($H(m)=m$), I am now supposed to design an attack. So $(m, (r,s))$ are given and I should be able to create a legit signature $(r',s')$ for a chosen $m'$ (of course $m'\neq m$).
Since retrieving the private key $x$ doesn't work. My new approach i... |
My understanding are these steps are necessary for symmetric cryptography to be IND-CPA:
The adversary submits two distinct $M_0$, $M_1$ plain-texts to the challenger.
The challenger selects one of them at random and encrypts it with the symmetric key and gives cipher-text C.
The adversary has to guess which message w... |
Does there exist a cipher that can be encrypted twice with two different keys and then decrypted twice using either key first?
For example:
Plaintext is "Lemons are great!"
Encode with Key #1
Encode with Key #2
Decode with Key #1
Decode with Key #2
Result is "Lemons are great!"
To my understanding TLS does something l... |
How to calculate time and space complexity of ElGamal encryption and decryption as there are two exponentiation operation during encryption and one during decryption? Here is my code for encryption:
for i=1:d
pow=pow*g;
y=pow%p;
for j=1:r
pow1=pow1*g;
C1=pow1*g;
pow2=pow2*y;
C2=(M*pow2)%p;
I t... |
I'm implementing an entropy gathering program.
For that I collect 2 bits from two gpio-pins connected to a random source.
I whiten this stream of bits using the von Neumann decorrelation algorithm. Now 2 out of 4 cases I can't use the bits because of that whitening algorithm (e.g. when both bits are 0 or both are 1). T... |
I plan on storing data, encrypted with AES256, where the first dozen bytes are known plaintext. ('Hello World!' for example.)
Does having this known plaintext prefix weaken AES256?
I do not care about modifications being made to the ciphertext, which result in modifications to the decrypted plaintext.
I do care about ... |
I am pretty new to cryptography and have a sample of GCM mode of operation for AES.
PFB the code
Cipher c = Cipher.getInstance ("AES/GCM/NoPadding");
final int blockSize = 96;//c.getBlockSize();
final byte[] ivData = new byte[blockSize];
System.out.println("IV :- "+new String(ivData) );
final Secure... |
This is for a challenge at followthewhiterabbit.trustpilot.com:
Knowns:
The algorithm is AES (Rijndael)
Blocksize: 128
Keysize: 256
You only need to find the first 6 bytes of the key, the rest are 0’s, so:
[?,?,?,?,?,?,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
All bytes in the key has an integer value b... |
I have a cipher text which is encrypted using AES-128 Algorithm.
I want to know the following things to decrypt the cipher.
IV (Initialization Vector)
Padding Method
Encryption Key
How do I find the padding method used in the encryption?
|
How much time will it take to crack PBKDF2 while using a 9 character password? I'm not specifying any specific system or platform. If a brute force attack is made using the best ever super computer around how much time will it take to crack it?
|
Sakura specifies a tree hash mode for e.g. Keccak (SHA-3). Are there any reasons to use the Sakura tree hash mode in a Generalized Merkle Signature Scheme? It seems to me Sakura primarily solves a uniqueness problem with using tree hashes for large data when the depth of the tree is variable.
Trivially, if Sakura mode ... |
As in the title, given $g$, $g^{ab}$ are big elements in a prime group $Z_p$ and $b$ in prime group $Z_r$ ($p > r$, $g$ is one generator of $Z_p$). $a$ is unknown and also in $Z_r$, is finding $g^a$ a hard problem?
update $a$, $b$ and $ab$ are group elements of $Z_r$..
|
Edit: I know this isn't really a one time pad (as pointed out), though I don't really know what to call it aside from just a pad, I guess.
I have been reading around (mostly various stackexchange sites, wiki and a few blogs/forum posts) about encryption and various techniques. I have read that doing a pad using XOR isn... |
It seems to me that padding oracle attacks are mainly a concern for users of CBC mode encryption. Question: are any other modes of operation vulnerable to padding oracle attacks? And if so, why?
There was some discussion in the comments section of this answer with regards to ECB, but it didn't reach a conclusion. It wo... |
I am doing a password manager in Java. But now I am VERY confused because of the encryption. There will be the program login, where the user types its password, and it compares to a SHA512 hash. If it matches, the user logs in, if it doesn’t, then the user doesn’t login. I think there is no problem at this point.
And t... |
To be clear, I have access to $H(S)$ and as many $H(S||K)$ as I want. Every string $K$ is known. Can I use the extra information to my advantage and try to deduce $S$, without requiring bruteforce? Or do you still have to bruteforce but try less combinations since you have more information?
|
I have been reading about attacks and many of them work on specific rounds of TripleDES but not on full TripleDES. Is there any attack except brute force that works on full TripleDES? (theoretical)
|
I was reading this paper. In the table-1 of the paper it says TripleDES (showing both 128bit and 168bit keysize) is vulnerable to Differential Cryptanalysis. It also says that AES (showing all three keysize) is strong against Differential Cryptanalysis. If AES-128bit is secure against Differential Cryptanalysis then w... |
I have been reading up on the polynomial representation of the AES Sbox (PDF: “Essential Algebraic Structure Within the AES” by Murphy and Robshaw) and I can't get it to produce the correct output.
Maybe I have a thinking mistake somewhere along the way, so here's what I did:
I picked a random byte: 10010101. This co... |
I've just come across this piece of code in Bouncy Castle's implementation of OCB Mode:
if (N.length > 16 || (N.length == 16 && (N[0] & 0x80) != 0))
{
/*
* NOTE: We don't just ignore bit 128 because it would hide from the caller the fact
* that two nonces differing only in bit 128 ... |
Most descriptions that explain how streamciphers work (like the one on Wikipedia), tend to describe a model that boils down to a simple “$ciphertext = plaintext \oplus stream$”, where the stream is determined by a nonce and a key, while the plaintext and ciphertext do not affect the stream at all.
On the other hand, s... |
It seemed to me that the Bouncy Castle SecureRandom class for C#/.NET only uses DateTime.Now.Ticks as its seed by default.
I was wrong, but wouldn't that be unsafe to do?
|
When doing encrypt-then-mac, I can choose to use a hmac as the MAC. For example, I could use a hash like SHA-256 or SHA-512 (by using it as a keyed hash) to create that HMAC.
Does it increase security when choosing a hash with a larger bit-size? Is a HMAC based on SHA-256 weaker than a SHA-512, or doesn’t it really ma... |
I'm very curious to know this and a bit confuses too:
Suppose, I have two files encrypted using AES-128bit with keys PBKDF2-derived from the same password and the same salt. If an attacker does brute force attack (imagining that he finishes this)
to crack the keys, I'm guessing he needs to run the attack once to get t... |
I need to use “ECDH with a cofactor key” for generating symmetric key. I have a fair idea on how ECDH works, but I don’t understand the cofactor part.
What is the difference between ”ECDH with a co-factor key” and ”ECDH without a co-factor key”?
Also, it would be great if you could point me to information related to ... |
Is KDF based on HMAC-SHA-256(Hashed Message Authentication Code, Secure Hash Algorithm) algorithm a suitable option to generate symmetric key from the secret key?
What is the basic funda, behind using KDF after getting the secret key. Can the secret key itself be used as the symmetric key.
|
I understand that the public key does not expose the private key. That is not the question.
The question is: Given a EC public key, can a different, but plausible and functional private key be derived to match the public key?
In other words:
In basic arithmetic, if you know a x b = c, and you know any two variables, ... |
I am following the Coursera Cryptography I course and I have the following question,
I am a bit perplexed by the statement, in week 2 lecture "What are block cyphers?" that a counter-mode PRF is a secure PRG.
PRPs are PRFs, and PRPs have the property that if (x₁, x₂) ∈ X, x₁ ≠ x₂, then PRP(x₁) ≠ PRP(x₂) -- since they a... |
I used TripleDES so many times but never thought about this. In TripleDES it requires 168bit key in option 1. I don't enter three single 56bit keys while implementing instead I only enter 168bit key. So, I'm guessing 168bit breaks into three 56bit keys. What it process of this breaking mechanism? is it linear?
|
I came up with a simple idea but I don't know if it is really secure or not. I know that you shouldn't create any algorithm on your own. I'm just curious, that's all.
Algorithm explanation:
First of all, Alice and Bob agree on a common secret password, lets say P1 (this should be done using a secure channel, like meet... |
Amy and Betty have a shared key $k$, and the protocol below is to provide a mutual authentication for both Betty and Amy.
A sends B : $n_a$
B sends A : $n_b \;\|\; E(k, n_a)$
A sends B : $E(k, n_b)$
Where
$n_a$ is a nonce from Amy
$n_b$ is a nonce by Betty
Can spoofing take place here where someone pretends to be ... |
I've been doing the security proof for one of my Theorem. Basically, given
$g^a$, $g^b$, $g^{cb}$, $g$ and $c$ as known values. Is the problem of computing $g^{acb^{-1}}$ equivalent to the Diffie Hellman-problem? In other words, is this easy to compute that?
My feeling is that its similar to the harder problem of the o... |
I have a few requirements for a password reset system, along with some questions at the end as to its security.
Requirements
The aim is to provide a password reset mechanism satisfying the following properties:
Multiple tokens per user, to allow for email delays to not cause confusion.
Tokens are single-use and expire... |
I was working with some encryption and I decided to put a spin. To preface this would be used to encrypt multiple files.
You start with a key file generated from random data. For example you could generate a 288 byte key file. This file contains 9 sub-keys each 256-bits.
For each file to encrypt you securely randomly s... |
I am examining a protocol that uses CRC32 as a MAC (see note 1) the weaknesses of this method but I would nevertheless like to see if it is just weak or actually relatively easily to break.
The examined protocol has the format more or less of:
Plaintext = Headers (6 bytes) || CRC (4 bytes) || Data
Ciphertext = 3DES-CBC... |
I have multiple devices connecting to a server, whose communication needs to be encrypted. At the moment I have an AES library doing the job (possibly inadequately): I am using a database of keys on the server, that corresponds to the keys stored on the devices (one per device).
Each message from the device to the ser... |
Recently I've been reading the paper “A New Family of Implicitly Authenticated Diffie-Hellman Protocols”. It's very hard for me to go further. Especially when it comes to the proof of knowledge. Actually, I never meet this concept before.
There are two extended concepts to the proof of knowledge in the paper, i.e. “jo... |
I am have one block of data to encrypt that is 32-bytes long. Is it better to use the AES-256 primitive for this single block (not a stream) or AES-256-CTR, and also would there be any cons or pros to using one and not the other such as to security or something else I am not thinking about.
This question relates to thi... |
This may be a very simple question, but I have not found info about this in any place. My question is about CTR mode: When it says $IV+1$… How do we make this operation?
For example, if I have the IV value 69dda8455c7dd4254bf353b773304eec (hex-encoded), what would be the result of $IV+1$?
I think that we must consider... |
PGP message integrity:
Basically, only private key can decrypt message encrypted with public key. But in the message integrity service in PGP does the reverse, where the Hash of the message if encrypted with private key and then the receiver decrypts it with public key! I need clarification.
|
Here's an authentication scheme I had in mind that combines the simplicity of HTTP Digest Authentication and the security of real crypto primitives. I have in mind the user-level authentication, ie login/password, not the TLS level.
I'd like to see if anything can go wrong with such a scheme:
Registration
User chooses... |
Suppose Alice knows a secret number $a$, and Bob knows a secret number $b$.
Is there a simple way for Alice and Bob to know who has the lowest number, without Alice & Bob exchanging their numbers ?
|
I am working on a Block Storage system, where I have the need to encrypt and authenticate blocks by a client, but also want the server to be able to detect bit corruption while minimizing the work done on the data. The storage blocks are roughly 1MB segments.
One option is to let the client use a AE(AD) cipher (like AE... |
I've devised a PRG using Bezier curves , constructed with Bernstein polynomials, and I was wondering if you guys could help me with some suggestions or constructive criticism.
Basicly I take a random set of 2d points(seed), used as control points for a number of concataned Bezier curves, this makes up my space. The gen... |
I'd like to know whether the following modified CBC-MAC is secure (given a fixed IV).
Source: an old course on Network Security
Are there some obvious attacks I can't see?
|
I've been wondering what would happen if the RSA modulus would be $n=p^2q$ instead of $n=pq$. I feel like there is an obvious security flaw (as there is with most modifications). Would this choise of $n$ make RSA less secure? If so, why? If not, then why isn't $n=p^2q$ standard since it allows operations on a bigger $\... |
Given that we know that nonce + message + hash(nonce + message + mac-key) all inside the encryption makes it possible to detect if any bits of the message have been changed by the attacker (in essence converting a malleable cipher into a non-malleable one), why do they still say encrypt then MAC?
Furthermore, doesn't a... |
So, in my imagination there is this simple algorithm with only one master password, let's say a prime number 'p', which I have to remember. Using only the address of the website and p, the algorithm must generate a unique password. It must be at least almost impossible to guess the value of p even if you know the algor... |
I need to store a string of digits (0-9) of a fixed size in my database securely.
I've already performed a rainbow table attack on a plain hash, and it broke it in a matter of seconds.
One option I had was to break the string into 2 or more parts and store them separately, within reason (i.e do not have the resources ... |
We learned that length padding was used in Merkle–Damgård where after padding with zeros another block is added that contains the initial length of the input. This is supposed to prevent same hash values for the different inputs $x \ne x0..0$.
Then again for Keccak we learned it is possible to use simple padding (e.g.... |
I remember $e=3$ is a bad choice for textbook RSA. But I can't really recall why. What happens if I choose $e=3$? Can I retrieve the message by simply calculating $\sqrt[3]{c}$? Why can't I do that with bigger $e$s? Is it possible to retrieve $d$, $p$ or $q$?
I remember that we had something with the Chinese Remainder ... |
Consider the function $F$ from $\{0,1\}^{56}$ to $\{0,1\}^{64}$, mapping the operative bits of a DES key to the ciphertext for all-zero plaintext. How could we organize a rainbow table to invert that function with high probability, low computational cost, and a reasonably-sized table that can be constructed at reasonab... |
The article here says below, about a universal hashing technique based on matrix multiplications.
"However, there is a little known method based on using a random matrix. It has lots of advantages - it's a universal family"
I tried to hard to find the source paper of the same to dig deeper but could not. Any references... |
I have general questions regarding rolling codes. Basically there is a sender and a receiver. Both have a sequence generator. The receiver checks if the received sequence matches the newly generated. An example used is KeeLoq.
Assuming a car opener (sender) and a car (receiver):
What happens if the sender is at anothe... |
While thinking about this recent question about a hash-then encrypt design, I reread the MAC-encrypt vs. encrypt-MAC question and noticed this answer quoting a paper showing that MAC-then-encrypt is secure with stream ciphers, even if not generically.
However, there's this attack when the MAC is deterministic and the c... |
I have an embedded project that requires AES, I seem to have found an AES implementation that fits the bill here: http://www.literatecode.com/aes256, but it does not include an IV.
Are there any documents detailing the standard way to implement an IV? I looked up the FIPS 197 spec and there is no mention of an IV.
|
I have read the Vigenère cipher is secure as long as the key length is the same as the length of the data to be ciphered.
Is this true when the same key is used multiple times?
In such cases, after how many uses would the key be considered insecure?
|
I have a requirement to implement AES_CMAC as the authentication algorithm in a CMS library. I just can't seem to find the OID and the ASN.1 definition for it.
I expected to see the OID under {joint-iso-itu-t(2) country(16) us(840) organization(1) gov(101) csor(3) nistAlgorithm(4) aes(1)} since it appears to be a NIST... |
I am using 3-DES to encrypt some data in Java. I decided to run some tests and plot some graphics to decide how to optimally pack data for its encryption (see how encryption/decryption time behave depending on the length of the plain text), so I measured the time to encrypt one thousand Strings of incremental size (fir... |
If $p$ is a big prime, and the elliptic curve $E$ is defined over $F_p$ by the equation $y^2=x^3+ax+b$ where $a,b\in F_p$. The point on $E/F_p$ together with the infinite point $\mathcal{O}$ form a group $G=\{(x,y):x,y\in F_p;(x,y)\in E/F_p\}\cup\{\mathcal{O}\}$. Then is $G$ a cyclic group? what's the order of $G$?
|
I would like to generate a key which would be good enough to be used for encryption with AES in a mobile environment. My idea is to use as a seed ''random attributes'' from a mobile device. Is hashing first this seed using HMAC construction (with some salt which is also random but public) and then use a HMAC-based Key ... |
This math is way over my head, and don't even know if it can be done, but here are the assumptions:
Take unencrypted File [Fu] of variable length, but assume 100KB as an example.
Let File [Fe] be the AES256 encrypted version of [Fu].
Let Hash [Hu] be the cryptographic hash using MD5 Algorithm of [Fu]
Let Hash [He] be ... |
I have some spare time, and a few hundred DJB2-hashed values sitting around. I thought I'd try to do something "useful" and invert DJB2, such that I could calculate the plaintext of the hashes (which has long since been lost, a fact that is often bemoaned).
For those who don't know, DJB2 is implemented like this: (C#)
... |
I am trying to secure my RF communication in which one RF package consists of two separate segments. I need to make sure that one segment of one packet is not replaced with a valid segment of some previous packet, if you know what I mean.
My RF packet is 32 bytes long, and I need to secure it with CMAC (I found an impl... |
The simplest way to generate truly random numbers for OTP keys is to measure the time in milliseconds between each keystroke on a keyboard. The randomness depends on the user typing in various speeds. I coded an algorithm TRNG-Kms and did exactly that.
The questions are: How secure is this method for generating one-tim... |
I have been trying this for a while. But I couldn't get it. How can I determine the point of intersection of the tangent line at (0, 0) on the curve $y^2 + y = x^3 + x^2$ ?
|
Are there any specific CSPRNG's that cannot be used as randomness extractor within a TRNG?
In other words, can you simply provide enough entropy gathered from a good entropy source as seed in any CSPRNG, and be done with it?
I've got the strong feeling that the properties of a CSPRNG are largely overlapping that of ra... |
The Von Neumann randomness extractor is explicitly mentioned in the randomness extractor page of Wikipedia, but strangely enough that page does not contain any reference to whitening the results of an entropy source.
Two intrinsically related questions:
Is this Von Neumann randomness extractor indeed a form of whiteni... |
I have heard that there is one paradigm of Public key cryptosystem, called Lattice based crytography. Further, its security claims are such that it will not be affected even if the quantum computers are available.
Would any one be kind enough to help me to understand the basic philosophy behind it, with examples?
EDIT
... |
First of all, I would like to note that I am not building my own crypto. I am simply curious and would like to learn.
What I am wondering is this: if we are worried about randomness of something like a one time pad, why don't we run the pad through a compression process (like bzip) to eliminate any patterns? Wouldn't... |
Assume that Alice uses Bob’s ElGamal public key $(\alpha=2, \beta = 8, P= 11)$ to send two messages $M = 17$ and $M' = 37$ using the same random integer $k = 9$. Eve intercepts the ciphertext and somehow she finds the value of $M = 17$. Show how Eve can use a known-plaintext attack to find the value of $M’$.
|
How do we add the integer points $P=(-1, 4)$ and $Q=(2, 5)$ on the elliptic curve of the form $y^2=x^3+17$ ?
|
Before stating my questions, let us recall the REACT transform [OP01], which enables to construct a CCA-secure hybrid PKE scheme, $\varepsilon'_{pk}$, from an OW-CPA PKE scheme $\varepsilon_{pk}^{asym}$, an IND-secure symmetric encryption scheme $\varepsilon^{sym}$, and hash functions $H$ and $G$. The transform works a... |
I am trying to create a system where to unlock the application one needs to enter a serial code. I have read many articles on the theme but there are two problems bugging me. One is, If I have a keygen and I can generate as many keys as I like then anyone else can do that too, but solving this by requiring a long "priv... |
Would it be possible to create an Over-The-Top communication utility that will encrypt voice using format preserving encryption (voice clear-text to audio encrypted stream) and send that over an existing channel (e.g. Skype/ Cellular)?
I was wondering if the FPE could be made to take such a form that the compression al... |
I have a system, using AES, in one of the modes that uses a nonce and authentication.
We have a pre-shared key, and to agree about initial nonce we could use Diffie-Hellman, using the resulting secret as an IV.
I want to know if there can be any attack on this system: is it possible to perform a man-in-the-middle attac... |
I want to use TLS to encrypt the communication between peers in a P2P network. Each peer has a well known 256bit peer identifier (the public key of a 256bit elliptic curve keypair). Both peers need to be authenticated against the ECC key.
Each peer has only one ECC key, no RSA key. During the key exchange step, I do n... |
My question is a bit naive, but what if someone generates the same RSA key pair as someone else? This person would have the same private key and so would be able to decrypt messages not intended to him.
I bet that the answer will be: “It is very unlikely”, but I would like a more persuasive answer to realize that it c... |
While implementing ciphers and hash functions, I often face a problem: where to find test vectors for it; so that I can guarantee my program is working correctly. It is generally a tedious job to find test cases.
Currently I am trying to gather test vectors for several ciphers and hash functions; including (but not lim... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.