instruction stringlengths 32 27.2k |
|---|
If the prime is $p=2^a\cdot3^b+1$ , is there any fast reduction technique modulo this prime?
|
I'm currently working on a proof in the Random Oracle model, and could not find the formal argument on why the random oracle is one-way (i.e. for an Oracle $O$, it is easy to calculate $x=O(n)$, but not efficiently possible to compute $n = O^{-1}(x)$).
Now, I know that the random oracle has that property, and it is int... |
The one-time pad is often described with a simple XOR cipher.
This is nice for showing the theoretical strengths of the one-time pad, but not so great in real-world scenarios where key reuse is a danger.
So, is it feasible to use an n-bit block cipher with an n-bit key to replace the XOR operation (which itself is a 1... |
In this YouTube video, Dan Boneh mentions that if both points are defined on the base field then the pairing is degenerate.
Why is that? And specifically is this true if I use the Weil Pairing?
|
An application that I maintain uses Sparkle Update to update itself. I expect attacks from high level attackers (China, USA's NSA, etc.) and have some questions about how secure the cryptography Sparkle uses actually is. Specific examples of good practices would be much appreciated.
Creating public/private signing ke... |
I am giving a talk to high school students and would love to do a real life encryption/decryption demonstration. I am not too familiar with the maths but is it possible to create like a 5-10 bit public-private key set, so I can get two teams to encrypt / decrypt a message that is passed across the room? I need somethi... |
I am trying to understand the basic TMTO by Diffie Hellman as described here. I am having trouble understanding this passage here:
Hellman had the idea of storing the dictionary in the form of long
chains. A randomly chosen key, with which a specific message is
encrypted, stands at the beginning of such a chain. T... |
I am currently working on designing a security protocol which involves usage of fuzzy commitment schemes, for. eg Reed-Solomon codes which allows us to tolerate a certain level of error.
I was wondering how one would go about formally verifying a security protocol which would use a scheme such as Reed-Solomon codes.
I... |
I understand DH and ElGamal and RSA encryption/signatures. But when I look at ECDSA (or plain DSA), it seems like the formulas are just pulled out of thin air. I can verify that the algebra used in the verification formula does in fact work out, but I have no clue why forgeries are hard, why these formulas were used,... |
We have proprietary tool which takes a p12 file and generates a .key file. Inside the key file, I see two PEM formatted sections: Encrypting Certificate and Signing Certificate. When I open them on my machine they have the same CN, Expiration and Issuer, etc.
This key file is used for mutual 2-way authentication and w... |
I'm studying(and clearing my head) about block cipher. I started from Caesar Cipher which can be considered as a kind of substitution cipher (if my understanding is right).
And an ideal substitution cipher (in 26 alphabets) is the two functions $E(x,k)$ and $D(x,k)$ where $0 \leq k < 26!$. And given $k$, one of the bij... |
Is it safe to encrypt possibly same plaintexts with 2 different algorithms using same secret encryption key? This question is similar to this question except they use 2 keys. More formally:
$E_k(m) = E_{1,k}(m)||E_{2,k}(m)$
I understand that this could be easily made secure by producing few more keys out of the one key... |
I have this RSA public key
-----BEGIN PUBLIC KEY-----
MIIBIDANBgkqhkiG9w0BAQEFAAOCAQ0AMIIBCAKCAQEAx9a8pYAiNaVt9PrwjQ+0
cB6elLiGpcPQxkQckuPToObXVJcg2BSWG1M4XcH70oI3sCipPBDQiy1HvzHIvW96
qAYsbXR5ouEnNNF9hRlV3hE4LPQhN/H8QIOd8lYrepHcO2dR9gYM6zCQg312C3SJ
l6Q6AZGaDI8saxv7cmU95wqK4ZfrHGeAp1kUzaz5rKVq81BZtyhYTpuyhMR5Hoz+
0XPsZB... |
In Russian GOST R34.11-2012 LPS-transformation is used. LPS gets all of its non-linearity from the 8-bit S-box S, which apparently has been designed to offer resistance against classical methods of cryptanalysis. Its differential bound is P = $8/256$ and best linear approximation holds with P = $28/128$ . There seem to... |
I am trying to understand how RSA public key cryptography works. I have the following questions:
Are any attacks / compromises possible if a server sends its public key $(n,e)$ in the clear to a client?
Suppose a server is using the same public key $(n,e)$ for all the clients in a LAN. Does this pose a threat?
|
Really simple question regarding the Affine Cipher.
Can someone tell me how $3^{-1}$ is supposed to result in 9 in the following explanation below?
|
I'm writing an article about new government law in Kazakhstan. The law was accepted in December, but now one of our providers announced information for small and medium business how to install government-provided root SSL certificate: https://www.beeline.kz/b2b/sme/ru/press_centers/10040
Yes, they really want to listen... |
I understand the theoretical part of RSA (the concept of public and private keys), but I don't understand the mathematical part. Can anyone please explain it to me in simple terms? Thanks.
|
I'm learning about client puzzles for DoS (Denial of Services) Protection, and I came across this question.
For each request, the server sends the client a freshly generated random challenge r and and a difficulty parameter n, and the client has to produce a solution s such that HMAC(s) with key r ends in n zero bits.... |
I have an interesting situation where I have a block cipher and a noisy channel. The interesting thing is that I happen to know much about the data. The cipher is a balanced Feistel network, and for the sake of this question, let's just assume that the block size is 32-bits.
What I know:
The key.
The original data h... |
Given $c' = \operatorname{HMACSHA512}(k, a\ ||\ b\ ||\ c\ ||\ d)$ and the 32-bit integers $a$, $b$, $c$, and $d$ is it feasible to alter $b$ and produce a valid MAC under the unknown key?
I understand that typically it wouldn't be, but I am mostly wondering if it's possible with 4 small independent inputs being used.
W... |
Given any probability distribution P r on the set
$\{k ∈ \mathbb{Z}_{26} : \gcd(k, 26) = 1\}$.
Show that the Affine Cipher achieves perfect secrecy if the key (k, a)
is used with probability $Pr(k) ·(1/26)$.
|
Whatever key is used to sign new iOS updates (for example) must be incredibly well-protected. How does a huge corporation like Apple keep those 4096 bits safe?!
Same goes for SSL keys for websites like Facebook or Google -- a compromised key means trouble for millions of users, but at some point the key must be decrypt... |
Suppose a cryptosystem achieves perfect secrecy for a particular plaintext probability distribution. Prove that perfect secrecy is maintained for any other plaintext probability distribution.
Having trouble starting this one. Just a hint to get started would be appreciated.
I am aware that a cryptosystem is said to b... |
I have found some researches dedicated for speeding-up RSA calculations using CUDA. But I am wondering how they do that, given that the biggest unsigned int that could be declared in CUDA is 64 bit.
Could anyone clarify this ambiguity for me?
|
RSA as implemented by OpenSSL et al. needs to protect against side channel attacks, at a big performance penalty.
However, TLS certificate validation involves no secrets. Therefore, I should be able to use a fast variable-time algorithm for this purpose, right?
Is this actually secure, and does anyone actually do this... |
RFC 5280 states that the CRL number should monotonically increase. I have seen this common practice of incrementing the CRL number by 1, every time a new CRL is generated. But can I use a Unix (epoch based) time stamp as the CRL number, which is monotonically increasing ?
|
I am a student of crypto. During our study course, we went into the AES-128 algorithm. All the examples given used an initial key k, 128 bits and we only briefly touched on the key derivation of PBKDF2. We looked at the key as a series of bits of fixed length and discussed the security and so forth.
If the 128-bit k... |
Would a compression algorithm that randomly shifts stuff around every iteration be TLS/crypto-safe?
This randomization would prevent the same byte sequence from appearing twice in a row, thus making it harder to figure out the key and stuff. Altho I don't have any crypto knowledge...
Note that it would only apply to th... |
Is the firewall decrypted my session? There is an error "Certificate Not Trusted" (Server Certificate changed to Firewall Cyberoam Certificate). Which public Key I got? Is Main server Public Key or Cyberoam Public Key? Is SSL traffic inspection is same for Authenticated Encryption "GCM" ?
|
This is more of a mental exercise for me than anything else. I've thought about doing something like this before, mostly to make a broken cipher a little more difficult to decrypt to plain text. I've simplified the strategy below, but in theory, you could use any length of replacement key first.
First, I would randomly... |
update: removed lots of stupidity... sorry. I didn't know I can be this stupid but I achieved it.
1. Goal
Let $\mathcal{D}$ be the universal space of our plain data. Our goal is to find a function $h:\mathcal{D} \rightarrow \{1,0\}^n$ where $n$ is some positive constant, such that:
For any $d_1,d_2 \in \mathcal{D}$, t... |
Weak collision resistance (CR), or second-preimage resistance, is the property that given $x$ and $h(x)$ ($h$ a hash function) it's difficult to find $x' \neq x$ such that $h(x') = h(x)$.
Strong CR, or just collision resistance, is the property that it's difficult to find any two $x,x'$ with the same hash value.
The la... |
I am implementing the SHA-3 algorithm in AVX2 assembly. The part where I am getting confused is that the padding with 10*1. Now my understanding is that the
data message M first needs to be padded with a '01'bit sequence. So, N= M || '01'.
Next, for the moment, please assume that the implementation is for KECCAK[1024] ... |
I am implementing a heartbeat protocol so that a server can send notifications to clients. The notifications are not occurring so often, so I don't want to keep an open TCP+TLS session for each client, since the overhead would be too high.
Likewise, I don't want to use DTLS heartbeat (see RFC 6520), since I don't need ... |
I'm trying to calculate the amount of settings the enigma machine has. I have found several sites regarding this topic, but it seems like there are two answers to my question. The first answer is 158,962,555,217,826,360,000 and the second is 107,458,687,327,250,619,360,000. Where the difference is that in the second an... |
Just researching cryptography concepts and finding it really hard to absorb them. I would love to know how these functions (injective, inverse, surjective & oneway) are related to cryptography.
Note that I am just looking for a brief answer. Something that makes sense to someone researching Crypto for the first time.... |
I am currently working on the following task:
Let F be a pseudorandom permutation.
Consider the encryption scheme for the message space $\{0, 1\}^n$ defined as follows: $Gen(1^n)$ chooses two random keys $k_1 , k_2 \in \{0, 1\}^n$. Encryption is done as $Enc_{k_1,k_2}(m) = F_{k1}( k_2 \oplus m)$ (Decryption is done... |
wikipedia says about the keys itself:
The public key consists of the modulus n and the public (or
encryption) exponent e. The private key consists of the modulus n and
the private (or decryption) exponent d, which must be kept secret.
I know, that public keys look like that in the wild:
-----BEGIN RSA PUBLIC KEY... |
Given enough RSA ciphertext, is it possible to determine which public key was used to generate the ciphertext?
Presume an unknown public key that was used to generate RSA ciphertext, and we have quite a lot of ciphertext. Would it be possible to determine which key was used to generate the ciphertext?
It seems to me th... |
So there's a recent PHP package that has been written to protect against cache timing attacks, which can be seen here
.
My question is... just how exploitable are cache timing attacks?
My overall impression is that they're extremely difficult to exploit and attempting to protect against them is rather like using a 1MB... |
Given enough RSA signature values, is it possible to determine which public key is required to verify the values?
Could there be enough information to establish which key is required? Is there anything in the RSA scheme to retrieve the modulus, assuming the public exponent can be guessed?
Only padded RSA for signature ... |
The strengths of various cryptographic primitives are often explained (though not defined) in terms of how long it would take to break under the current best known attacks. For example, apparently the best known attack against AES-128 reduces it to ~126 bits of security, and that is often explained as "good enough" bec... |
I'm looking for a neat algorithm, which is capable of encrypting an integer to another integer and decrypting it again AND is secure.
When I was in university, my professor showed me an awesome way to encrypt and decrypt integers using the modular multiplicative inverse combined with the extended euclidian algorithm. W... |
I know prime numbers are important for several algorithms and protocols. Are there any algorithms and protocols that don't require primes?
|
does anybody know how to encrypt and decrypt using python3.4 shell
cos i was wondering why people have been creating cryptographic lists then inputting them into python.
The lists look something like this:
(lp0
S'a'
p1
aI123
a(lp2
I4
aI5
aI01
aa.
apparently this makes ['a', 123, True] when decrypted.
How do they get t... |
There are several algorithms for efficient scalar multiplication of an arbitrary point P(x,y) by some positive integer k in elliptic curves defined over $F_{p}$ or $F_{2^{m}}$.
The scalar multiplication deals with point doubling (adding P(x,y) to itself) and point addition(adding two different points (P(x,y), Q(X,Y))... |
I am currently doing a mini project which sniffs GSM packets using gr-gsm and wireshark.
I was wondering if anyone knows what is the name of the current encryption algorithm method used on GSM?
|
As a challenge, we were shown an RSA setup where we have a big $n$ (617 decimal digits), $e=4$, and asked to recover three messages. (However, the messages are padded to the same length as the key with random bytes.)
I don't have a very strong background in cryptography, and this is apparently so poor that nobody bothe... |
Question: Are multiple outputs of a Merkle-Damgård hash function (or specifically SHA-256, if this can only be said for a specific algorithm) on unknown data unlinkable? If yes: Can this be formally proven or only said "from experience" / on a basis of "no attack has been found yet"?
Bonus question: Does anything chan... |
I just encountered the term "zero-knowledge" and wanted to know more about it.
I understood that there is a zero knowledge protocol between two parties to determine whether $x$ is greater than, equal to, or smaller than $y$, given that one side knows $x$ and the other knows $y$, but I couldn't find anything about it.
I... |
The question is quite similar to Many time pad attack and I was trying to rely on the top answer, but still am a bit confused, so any explanation and help will be much appreciated.
Assume I have a bunch of ciphertexts with the same key. I need to decipher one of them.
At the moment I understand that I need to XOR the ... |
In the Learning with error problem, if the error term $e$ from equation $b=<a,s>/q+e$ were of this kind $e=2e_1$, where $e_1$ is chosen according to the probability distribution for the LWE problem, it would weaken the problem significantly or the security insured would remain the same ?
|
After we calculated $N = p * q$, we calculate $\varphi(N)$ and use it later to determine $e$ (PR) and $d$ (PU). But why?
For decryption and encryption, we only use $N$ and don't need $\varphi(N)$. So why can't we find $e$ and $d$ without Euler's totient function?
I know that $\varphi(N)$ is giving me how many integers ... |
Sort of Related: Is there a cryptographic hash function that can be performed with pencil and paper?
One problem with hashing passwords is that the attacker has more of everything it seems. More speed, more memory, more time, newer algorithms, etc. It's a constant race to keep up. We have the advantage of having to try... |
I have the code for a decryption algorithm but I'm struggling to figure out how to reverse it into the original encryption code.
function write(x) {
return x >= "0" && "9" >= x ? (x.charCodeAt(0) - 48) : (x >= "a") && "f" >= x ? (x.charCodeAt(0) - 87) : 0;
}
function ondata(input) {
var DATA = "";
var i = ... |
I'm attempting to get a better understanding of cryptography and have run into some questions about bcrypt.
Bcrypt relies on the blowfish cipher, which is a reversible method of encryption. But bcrypt is not reversible. How is that possible? Or am I mistaken? What does bcrypt do on top of blowfish to make it irreversib... |
I am currently studying authenticated encryption and I was wondering if there was a difference between using a MAC and authenticated encryption. It seemed like authenticated encryption schemes use MAC's in order to provide a level of integrity to the ciphertext.
However, I was unsure if there were specific modes of op... |
Can format preserving encryption be used for any other applications than Credit card, pan card or social security numbers?
If, could you provide a few examples for my further research on the topic?
|
This is the question.
Suppose $G$ is a secure PRG with expansion factor $\ell(n) = 2n$ such that $n$ is a security parameter.
Is it always the case that,
$G'\colon \lbrace 0,1 \rbrace^n \to \lbrace 0,1 \rbrace^{3n}$,
defined by, $G'(s) := G(s) || \bar{s}$ is also a PRG ?
Here, $||$ represents concatenation of bit stri... |
I'm attempting to get a better understanding of cryptography and have run into some questions about bcrypt.
Bcrypt relies on the blowfish cipher, which is a reversible method of encryption. But bcrypt is not reversible. How is that possible? Or am I mistaken? What does bcrypt do on top of blowfish to make it irreversi... |
I came across something known as deterministic authenticated encryption in my studies, and a lot of people were associating it with Synthetic IV mode.
I am having trouble understanding what exactly DAE is because I thought that if something was deterministic, it didn't have a sense of authenticated encryption. It viola... |
Let's say I am making an encryption algorithm, and in the algorithm in have the following step: "multiply the integer from the previous step by 9 and take the sum of the digits of the resulting number." By doing this, I've guaranteed that the result will be divisible by 9 in base 10, which let's say I did not expect. ... |
I was learning Asmuth-Bloom's threshold secret sharing scheme. I was working out an example as given in this Wikipedia article.
As per the example, the secret, d is 2, the number of shares, n is 4 and threshold, k is 3.
The list of relatively prime integers, m is [3,11,13,17,19] and it follows the criteria $m_1.m_2.m_3... |
I'm looking for any asymmetric algorithm can perform the serial encryption, by serial I mean double or more encryption with different key (same key size). RSA can not do it since the cipher of the first encryption is to long to perform an other encryption with the same key length.
For example (from Yao, Yang & Xiong 20... |
The original algorithm produces 1 byte long hash and is (of course) not suitable for cryptography use.
But according to wikipedia, it is possible and easy to produce Pearson hash of any length, simply by increment the first byte of the message for every next byte of the hash.
Also, if the encoding array is filled with ... |
Suppose we have two secret keys K1 and K2, I'd like to ask if there is any encryption scheme that allows us to derive another key K12 from K1, and K2 and for a message x, EK12(x) = EK1(EK2(x)).
EK(x) is the encrypted text of x using key K.
|
Recent news reported about the discovery of a "Prime Conspiracy" which can be read about here.
In summary, researchers have discovered that the last digit of prime numbers have a greater predictability than random. The cited example is that primes ending in 9, have a 65% chance of the next prime ending in 1. I am curi... |
Consider the following construction of a PRF $F: \{0,1\}^{128} \times \{0,1\}^{64} \to \{0,1\}^{64}$ on 64-bit messages and 128-bit keys. Define $f:\{0,1\}^3 \to \{0,1\}$ by
$$f(c,x,y) = \begin{cases} \neg(x \land y) &\text{if $c=0$}\\
\neg(x \lor y) &\text{if $c=1$.} \end{cases}$$
Define an (unkeyed) round function $... |
I have three binary files:
31744 byte length,
5712980 byte length and
10806008 byte length.
The alphabet is all 256 symbols from 00 to ff. I compute the Shannon entropy, replacing probability with frequency.
H = 4.291334237835409
H = 7.999155088532762
H = 7.993862849926811
Then I encrypted all three files with A... |
Quanta Magazine reports:
Two mathematicians have uncovered a simple, previously unnoticed property of prime numbers [...]. Prime numbers, it seems, have decided preferences about the final digits of the primes that immediately follow them.
Among the first billion prime numbers, for instance, a prime ending in 9 is alm... |
Is it better to encrypt a plain text file before compression, or vice versa?
|
Recently I decided to learn "Playfair Cipher", and I have hit a road block.
what do i substitute the letters for if they are on the same column? Here is an example:
CIADX
BEFGH
KLMNO
PQRST
UVWYZ
With the Key being CIAD (Random Text)
I want to spell the word "trust" but I do not know what rule to follow for the T & R.... |
Bit of a noob question and a fair bit of Googling didn't help. I understand that the current encryption standard is AES256. A few questions
Is the point of this (and other encryption techniques) to reuse the same private key for multiple messages? If we're using one-time keys, then a simple addition is enough and the ... |
In the same fashion that these questions about attacks to textbook RSA and ECC, I was wondering what are the immediate drawbacks of applying NTRU Encryption directly, without any padding scheme, such as NAEP or SVES.
|
I wrote my own messaging-app and now I would like to encrypt the data transfer between my client (app) and my server. What kind of encryption is easy to implement and can be recommended? I am very very knew to the whole encryption thing. I would love to get some hints or ideas as input.
I use TCP/IP for delivering the ... |
I'm implementing this homomorphic crypto-system : http://eprint.iacr.org/2011/440
I'm using SAGE math.
I don't get how the bootstrap is done in this scheme, in the appendix A, they say Apply the decryption circuit to the expanded ciphertext z and the encrypted secret key bits σi, thing that I don't understand since the... |
I've got a homework problem that I'm having a hard time understanding. It's for the Three-Pass Protocol, and we are given p, the three messages, and are told that the original plain text is one of two values.
The professor says we can use number theory to look at any of the three messages and determine which of the two... |
In a distributed voting system (all the messages are public, but signed and maybe encrypted/blinded), having:
$d$, $e$, $N$ — registrar key params
$m$ — msg
$r$ — random blinding factor
$m'$ — blinded msg
$sm'$ — signed blinded msg
$sm$ — signed msg
When person received $sm'$ from the registrar, and unblin... |
I wonder what kind of techniques can be used to validate implementation of cryptography algorithms?
The obvious one is to run specific algorithms against publically known test vectors (i.e. from NIST). Other idea would be to run it against some tool for fuzzing like AFL.
Would you have any other ideas, tools? How woul... |
I see that in many scripts are used keys of 16 characters for a block of 16 byte, but can I use key of 40 (for example)? And then why in some scripts with aes module the block size is set to 32 byte if aes can handle a fixed size block of 128 bit? Is it correct?
|
Disclaimer: I am a noob so this may well be a stupid question or one that's been asked before. I didn't see it come up after searching, though, so I'm going to assume it hasn't been asked here.
The question's pretty much covered in the title. An explanation of why is below.
Why?
Short version: Because CBC is malleable ... |
I have been reading a little bit about verifiable random functions (e.g.). In the literature, these are described as "pseudo-random functions that provide a non-interactively verifiable proof for the correctness of their output". I'm having a little trouble seeing a clean example of a 'killer application' for such a pr... |
I'm in an Intro to Computer Security class, and one concept I'm having trouble understanding is how two different files could produce the same checksum. How would you produce the same checksum given two different files? So far, through reading the book, I found mention of something called the "pidgeonhole principle" th... |
Given the classical scheme Playfair, say, for 5*5 matrices, I am interested to determine its unicity-distance. How should one proceed to properly do that? I should appreciate it, if I could obtain a very terse recipe, listing the kind of computations such that I could effectively compute that value myself. (I am attemp... |
As was pointed out in Martin Bonner's comment I cannot prove this, but it seems intuitively impossible.
An encryption function is supposed to obscure the plaintext to the point where no information can be obtained about it. If the underlying encryption algorithm can even be determined, that goal has not been achieved.
... |
Let's say you were given a dump from a security breach. You want to share the email addresses affected by the breach with a separate company who pays you for this service so that they can protect their users. Maybe it's a security company, or maybe it's a large retail store wanting to prevent accounts with shared passw... |
The RSA cryptosystem only works if certain constraints are applied to its input parameters. Some of those constraints are made to make it "hard" to determine the private key whereas other constraints are there to make the mathematics work. I want to understand the latter category of constraints and why they exist.
Here... |
I understand that one can define EUF-CMA of a signature scheme is terms of a game where the adversary is allowed to query signatures on messages of his choosing, and at the end of the game he must output a pair (m, s) such that s is a valid signature of m, and m has not been queried before. My questions are the followi... |
I am trying to break a block cipher that can be defined as follows:
We have 12 rounds and at each round, we perform the following operation.
We split 64 bit data into 2 parts each 32-bits, $\ x_r$ and $y_r$ and compute:
$x_{r+1} = M * (x_r \oplus y_r) \oplus k_0 $
$y_{r+1} = M * (x_{r+1} \oplus y_r) \oplus k_1$
Where $... |
Is there a known 'non-brute force' method of determining a private key in an RSA system when all other parameters are know?
I found the values of a ciphertext ($C$), its corresponding plaintext ($P$) and the values of the public key ($e$,$N$) are known.
We know that:
$$P = C^d \mod N$$
Here, the value of $P$ is known ... |
I can easily crack a WPA TKIP using a dictionary/brute force method, provided that I collect the four way handshake. Is the same method possible on WPA2 AES? I cannot find any articles about '4 way handshake capture' and 'WPA2 AES cracking' together; but I was able to use aircrack-ng to crack my WPA2 AES wireless netwo... |
I've used AES-128 in CTR mode in the past and using the same key but different IVs for each file, I wrote the IV to the first 16 bytes. Is it safe to do so with the nonces used in AES-256 GCM? I'm using the word nonce here because that's what is declared in the Sodium library.
Are the uses for IVs and nonces exactly th... |
I am doing project k-nearest neighbor classification over semantically secure encrypted relational data I have doubt for in smin algorithm in
1)Li ← Wi ∗ Φir′; ri′ ∈R ZN
this line it the out put is
original output
r
r
1
r
r
r
my output
-1
-1
1
r
r
r
please help how ... |
Currently I have a protocol using a simple RSA to AES handshake. I have been reading more and more and would like to implement proper forward secrecy, but at the same time I'd like to improve the performance on mobile devices.
My question is, where would I start reading / learning about how to implement proper ECDHE ( ... |
I realized that if the key is chosen randomly from a range that isn't a power of $2$, the one-time-pad leaks information about the plaintext.
For example, if the alphabet was the first 20 naturals, then if you see a 6 in the ciphertext, the plaintext letter must have been within [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1... |
When creating a Bitcoin account, you need to issue a couple of private/public ECDSA keys. Then, you derive your account address by taking a 160-bit hash (through SHA-256 and RIPEMD) of the public key and use a custom Base 58 algorithm to convert it to alphanumeric values (see the picture below, I took it from this page... |
I've noticed that SHA-512 password hashing leaks some information about
the password length. There's a weak correlation between password length
and time to hash. It's roughly linear, but in steps of 64 or so, and
also dependent on salt length. I suppose a little extra length results
in one extra block of hash input for... |
Given $x' \in \{-x, x\} \bmod q$ (where $q$ could be any prime of my choice), $s$ is a random element in the field, $y = x'\cdot s$ and $y' = \pm\sqrt{(x\cdot s)^2}\bmod q$ (i.e., both solutions to the quadratic residue), is there a way to tell whether $x'= x\bmod q$ or $x' = -x \bmod q$?
If not, is there some other kn... |
A friend of mine needed help with her website and asked how to send me her login information securely. I've never known how to do this, so I figured now was the time to learn. After some googling, I suggested sending me an SMS or a password-protected zip file. Then, just for fun, I programmed this:
<html>
<head>
<title... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.