instruction stringlengths 32 27.2k |
|---|
Consider an alphabet with 26 letters. Then a substitution cipher has $26!$ possible ciphertexts (with every letter substituted). What about repetive substitutions on a 5 letter word for example? How many different ciphertexts will result? Like $\sigma(a)=b, \sigma(b)=c, \sigma(c)=a$, then $abc \rightarrow bca \rightarr... |
Thank you for the answers, I have edited my questions.
It is a known fact that encrypting the files increases the file entropy. You can see the average entropy values of encrypted and non-encrypted versions of the different files in this
paper (see figure 2). After I read this paper I check out my encryption algorithm ... |
As Deepfake and other technologies make video anti-counterfeiting very difficult, I want to design a scheme based on cryptography to verify that a video is actually captured by the camera. At the same time, I hope this video supports truncation. For example, I have a video that takes one hour long, and if I intercept o... |
Let's say I have ciphertext c = Enc(pk,m), produced by a public-key encryption scheme but I don't know the public key of the sender. Can the sender easily produce another key pair and then claim that the ciphertext actually corresponds to c = Enc(pk',m') or is this computationally impossible?
|
I am trying to find polynomial , but don't know how to get matrix
matrix must look something like this:https://www.oreilly.com/library/view/computer-security-and/9780471947837/sec8.8.html
For example if output is 11010110 and length of register was 4, how to get such matrix:
1 1 0 1 0
1 0 1 0 1
0 1 ... |
I know from the bottom of my heart how bad the idea of custom-crypto is. I absolutely concur with the recommendation that it should only be done by professionals who specialize in implementing crypto safely.
However, exactly because it's a Bad Idea ™ it's really hard to find good information on this topic. Say one of t... |
So, in real life we have a handful of ways to leave a physical mark on a packet to know if it has been opened without authorization (eg. you can use 'opened' security tapes, or you can put a signature or stamp right through the envelop opening). One thing i see these tells share, is that they are some sort of signature... |
I'm struggling with understanding this part of the literature:
It can be assumed that the entire ciphertext AND plaintext is known.
Considering the encryption method is $C_i = enc_k ( P_i \oplus C_{i-1})$ with a key k, and the decryption method is $P_i = dec_k(C_i) \oplus C_{i-1}$.
Why does it say in equation (2) sa... |
I want to design a zero-knowledge proof (ideally a NIZK, but could be a sigma protocol) so that Alice can prove that a certain encryption contains a value that has been signed by a certain key.
More specifically:
Let ek be an encryption key (e.g., ElGamal) and dk the corresponding decryption key.
Let sk be a signing ke... |
May be this is absolutely off-topic, but here is. The cryptosystem description follows. Any hints of what to do with it, or flaws found are welcomed.
This description is here as well.
We will use a substitution 16x16 table, this is one of them:
7 9 13 10 15 2 0 6 3 12 8 4 1 5 14 11
1 15 6 3 9 4 11 13 10... |
As far as I know, quantum computers are able to solve only some of the NP-Problems in polynomial time, using the Grovers algorithm. I read that if one manages to create a reduction of Grovers algorithm on one of the NP-Complete algorithms, for example 3SAT, then it will be a huge milestone, since we could solve all oth... |
I understand black-box obfuscation at some intuitive level as- "an adversary can learn nothing more from an obfuscated program/circuit/function than he or she can from a black-box access to the same program/circuit/function." But I am failing at grasping it formally.
I got the following description from this site:
Bla... |
I saw that in lattice-based cryptography schemes, for example Dilithium, coefficients in $Z_q$ are allowed to be negative. For example, in Dilithium the secret key is $s_1 \in R_q^{k \times l}$, where $R_q = Z_q[X]/(X^n+1)$. In the reference implementation and also in the paper, all coefficients for $s$ are in the rang... |
I use GPG symmetric, to encrypt text file.
Is it possible to use GPG symmetric, to encrypt a text file, and at the same time, add additional setting to the encrypted file, to give us 2 conditions:
correct password will decrypt it.
incorrect password will give fake decryption result, instead of indicator "decryption f... |
ECDSA signatures are malleable. Given a valid signature (r, s), one can create a second valid signature by negating the s value.
I have searched workaround for this issue, and https://yondon.blog/2019/01/01/how-not-to-use-ecdsa says:
One solution to defend against signature malleability based attacks is to enforce a s... |
In SEAL homomorphic encryption library, it implements the BFV and CKKS. We know the error $e\in R_q$ which is a Guassian distribution. When sampling an error term $e = \sum_{i=0}^{n-1} e_ix^i$, it just samples $e_i$ from some discrete Guassain distribution over the integers.
However, it seems that the discrete Guassian... |
Looking specifically at RSA and EC algorithms which imply doing operations on integers >= 256 bits (>> 64 bits), I have noticed (from my limited experience) that 99% of the software for crunching big numbers is designed for CPU. For example, there appears to be no actively maintained CUDA package for big-number operati... |
Are KDFs such as PKDF2 and HKDF vulnerable to side-channel attacks such as static and dynamic power analysis including the hash type used internally?
|
I am trying to understand the Kannan embedding technique. But I am confused about the formation of the B' and the finding of the short vector inside that basis. How does this basis matrix in the algorithm produce a lattice? Or more specifically why a uSVP instance consist of a vector(e^T) and an integer(M)?
Thanks.
|
Differential privacy can be used to show that the "privacy loss" of a certain computation is "bounded" in a meaningful way.
In cryptography, often "indistinguishability" is considered, i.e. we want $\Delta(D_0, D_1)$ to be small.
Can these two concepts be related?
I know vaguely that standard notions of differential pr... |
In mid 2020 Jeffrey Burdges and Luca De Feo published a paper proposing a trapdoor-less time-lock puzzle called Delay Encryption. Has a prototype of this ever been made?
|
I've been thinking about PICNIC, the tier 2 NIST post-quantum signature scheme. Leaving aside the innovative multi-party computation zero-knowledge proof structure, the private key is an $n$-bit key for an $n$-bit block cipher and the public key is a single matched plain and cipher pair corresponding to the key. There'... |
In the PICNIC post-quantum signature scheme, a zero-knowledge proof of the secret key for a symmetric encryption is produced by implementing the encryption as a Yao garbled circuit of a three-party computation. The proof is to divide the key into three shares notionally split between three parties and produce transcrip... |
Assume there are three parties say A, B, C.
A commits to a message $m$ say $c(m)$ and sends tuple $(m,c(m))$ to B.
B has to prove to C that he possesses commitment $c(m)$. There is no interaction between A and C. But B should not cheat by sending commitment to some other message $m^\prime$.
I guess for this we need A... |
Working with Curve25519 I've faced with suggested form of computation square root candidate as: $uv^3(uv^7)^{\frac{p-5}{8}}$ instead of $\left(\frac{u}{v}\right)^{\frac{p+3}{8}}$. Why it is so? Or why is it less expensive?
Edwards-Curve Digital Signature Algorithm (EdDSA) https://www.rfc-editor.org/rfc/rfc8032#section... |
im doing a small programming project, where I have to implement shamirs secret sharing scheme.
I want to share the secret S = 21426848149916227113669602
I want a k of three, meanng that three shares can recontruct my secret, so I need a second degree polynomium.
First I create my function of the form:
f(x) = ax^2 + bx ... |
I have recently read a paper about pairings, which only implemented asymmetric bilinear pairings and it mentiond that $\eta_{T}$ pairing is the most efficient algorithm for symmetric pairings. I wonder is there any software implementation on elliptic curves could achieve both asymmetric and symmetrci pairings e.g. $e(g... |
For example the following suite:
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
From what I understand the SHA384 at the end is used to authenticate the message, which is exactly what MAC does, and the mode GCM already creates a MAC, then why is the cipher suite followed by SHA384?
|
I was wondering how to measure the security strength of a generated secret key for the below protocol:
"A 128 bit random number is generated by TRNG and the random number will be used as a private key for Diffie-Hellman key exchange protocol. Two entities generate the shared secret key and that will be used as a sessio... |
From this site: https://tls13.ulfheim.net/ and from https://www.rfc-editor.org/rfc/rfc8446#section-2 I can't find the part in which the exchange of keys is signed, isn't one of the parties "key_share" supposed to be signed using the server certificate's keys?
For example this:
https://i.stack.imgur.com/nsGeV.png
In the... |
The code of the first image was provided by Squeamish Ossifrage in this answer. In wich language/program was plot? In JavaScript or GeoGebra?
Also, I found in YouTube the image below with the point at infinity (north pole) plot in a projective plane using stereographic projection. The YouTube channel is Trustica. I co... |
I am watching Lecture 3 (Stream cipher, random numbers and one time pad) by Christof Paar and perhaps its something that will be explained in another lecture but:
When he explains how XOR works, in the example he gives, plaintext X3.X2.X1 is encrypted with key S3.S2.S1 and becomes ciphertext Y3.Y2.Y1.
So if the plainte... |
I've been delving into cryptography for fun and trying to implement a visualization for AES using image encryption. So far, represented each pixel's RGB values as hexadecimal numbers, then split it into an array of 16 character strings. I know that AES is a block cipher, so I have to split them into 16 character string... |
For End-to-End Encryption in chats using Diffie-Hellman Algo the concept of Extended Triple Diffie-Hellman (X3DH) is used to prevent Man-in-the-middle attack (MITM)
(courtesy: https://www.qed42.com/blog/developing-real-time-secure-chat-application-like-whatsapp-or-signal-with-end-end-encryption#endtoendencryption)
My q... |
The said randomized hasing is actually a sort of padding, and it goes like this:
Parameters:
1. hash function H()
2. length N in bytes of the output of the hash function.
Input:
1. M the message to hash.
Generate:
1. Generate r := N/2 random bytes.
2. Compute lo := H(r|M)
3. Compute hi := r xor lo
4. _Return (hi|lo)
... |
Currently I was working with FHE scheme and used HElib to do homomorphic logical operation like the formal question described Homomorphic encryption methods that could support logical XOR, AND?.
But now I'm facing a new problem. When I do multi times calculation (the situation is a circuit calculation that has to be us... |
Consider the finite set Z_257 of non-negative integers less than 257. The number 257 is a prime, so Z_257 forms a field with addition and multiplication mod 257. How can I use the Extended Euclidean Algorithm to find the multiplicative inverse of the element 254 in this field.
|
i have been recently learning about different types of hashing and the encryption/decryption methods of such hashes. Im currently trying to find the preimage of this hash i have been given as a homework question.
user2222:$6$l4w8Hnu1/ZHGGd.p$BHENd1yKnjRcW.KcAtqcOY096A6HtQBFaWGaXkQ0TofWRy.bngwrVTlLlzdwOLRvHtesGPIrY4LGSU... |
I have some trouble understanding the linearization of the degree 2t polynomial generated by multiplication in BGW. It would be great if someone could decode this linearization in simple terms from a 2t degree polynomial to a t degree polynomial.
I've understood that in multiplication, we calculate r(x) = p(x)q(x) but... |
I was trying to understand AES (Rijndael) from a very mathematical perspective. I'm quite new to abstract algebra and Galois Fields. I understood that we are considering a byte (8 bits) as a polynomial in $GF(2^{8}) $ where the coefficients are either $0$ or $1$ i.e. they are elements of {0, 1} and all operations are ... |
If the same nonce is used across different messages under the same private key, the private key can be easily revealed.
However, let's consider another scenario.
Two private keys, x1 and x2, are used with the same pair of nonces, k1 and k2. Thus, for each pair of signature (r,s) and hash message h, we get:
$$ s_1=k_1^{... |
What I am looking for is a function that meets the following criteria:
For each possible input (assume integers from [0, 255]), there must be trillions of possible outputs so as to prevent preimage attacks and is hence probabilistic.
The function must be a one-way hash, so given an output the input cannot be deduced.
... |
I'm reading about hash functions at the moment, and in the book I'm reading there's a section on multicollisions. Specifically, using a 2-collision to find $2^N$ collisions in $N2^N$ time.
If, theoretically, a collision was found which was valid for cryptocurrency mining (however many 0s on the end), couldn't one find ... |
Introduction
I know how to do Cramer-Shoup with cyclic groups. But how do I do it in elliptic curve cryptography (ECC)?
Cramer-Shoup with cyclic groups
Following was taken from Wikipedia: https://en.wikipedia.org/wiki/Cramer%E2%80%93Shoup_cryptosystem
Key Generation
Alice generates an efficient description of a cyclic... |
I am trying to understand how they use the random oracle to solve the CDH. For example, in the security proof on page 7 of the following paper; A Lightweight Message Authentication Scheme for Smart Grid
Communications, Fouda et al. 2001. The authors used a random oracle to break the security of an authenticated DH prot... |
I have seen that there is a similar question here but none that really answers the question. I understand that if I choose the encryption exponent $e$ not coprime with $\varphi(n)$ then there is not a unique way to decrypt a message.
What I am wondering is what is the mathematical reason behind this? It seems to me tha... |
As an exercise I'm given an RSA to attack. I have the module ($n$), the public exponent ($e$) and a single ciphertext ($c$).
For this particular case, $n$ is VERY big (5 thousand digits more or less), but the public exponent is small ($e=7$).
I know that, as $m \ll n$, this can cause no use of the module operation ($m^... |
For practical reasons, I'd like people to be able to post clearsigned messages with their public key fingerprints (8E570D9F7F70256595769E49F9BC5BCAD7E18635) for the system to check. However, the libraries I see all seem to require a full public key certificate to do verification. Is there a way to do it with just finge... |
I've recently been looking at ProtonMail, an email service which provides transparent end to end encryption between users with PGP. In order for the encryption to be transparent, ProtonMail manages all of the public and private keys.
When sending an email from a ProtonMail account to another ProtonMail account, the Pro... |
In pure differential privacy, the parameter $\epsilon$ represents the desired privacy loss. The smaller the $\epsilon$ is, the more privacy we can obtain. What happens when we want the privacy loss $\epsilon = 0$. Does that mean we need to keep the data permanently private and we do not answer any queries from outsid... |
I am working on a project that is dealing with personal data.
The task is to find a method such that when user makes a query into multiple institutions, the result will contain already scattered/dispersed data.
I'll try to give an example:
The user asks data from institution A and institution B. User sends
the query: ... |
With its public and private key(s), Wireguard looks a bit like PGP. But it is used for encryption of network packets and not normal text messages. I'm on a system with Wireguard already installed and don't want to install more programs than necessary.
How, can I use a public Wireguard key to encrypt a text message whi... |
I see that all cryptosystems are work on finite field. But i consider that have any cryptosystem that works on real number (do not consider the round step and it also can be an estimate cipher)
|
Let's say I'm making a digital signature like this:
hash = hash(message)
digital signature = encrypt_with_private_key(hash)
where the private key is Alice's private key from a secure public-key cryptosystem.
And I'm making a MAC like this:
MAC = hash(message + some_secret_key)
And I then send both of these to my frie... |
with the information provided - what would be the best solution - something like document management program like IBM Filenet ? or trusted timestamping?
If I want to store electronic contracts for clients over a long period of time. I need to make sure that those files are not readable by anyone other than the client u... |
Simplified Question
Does it make sense from a security / cryptographic standpoint to encrypt a text in the following way:
create only one AES key K_Azure
create new random key K_Text1
encrypt Text1 with K_Text1
encrypt K_Text1 with K_Azure
store [ E(K_Text1), E(Text1) ] in the same storage
store K_Auzre somewhere else... |
I have an application that needs to combine two cascaded (symmetric) encryption keys using the Pohlig-Hellman cipher.
For example:
The system needs two keys for encryption $c = E_a(E_b(x))$ while it only needs one key for decryption $D_{a\otimes b}(c)=x$. The system may NOT need to consider Known Plaintext Attack or C... |
I have two plain texts files cipher with RSA (with the same public and private key) and I have their cipher texts too. Would it be possible know the public key from that information?
My messages have 10 characters and I cannot calculate a huge exponential operation. No padding is used on the messages before encryption.... |
I am testing TLS 1.3 on a slower IoT device (120Mhz ARM). In my tests Chrome with TLS 1.3 will not allow TLS resumption (Session Tickets) when you have an not secure connection e.g. because of an user accepted self-signed certificate. Additionally you will see almost the doubled number of TCP connections when loading f... |
What is the best way to transform a hash with a longer length into one with a smaller length, preventing as many collisions as possible? (Hashing the hash)
For example: Some versions of Git use SHA-1 for hashing commits. Of course, 15ce7ff90976b3e43738be403f5c985377646bb3 is rather large to display on a screen. Because... |
I am looking into an article about 32bit CPU/MCU software implementation of AES and there are some weird changes over there.
Like shift-rows.
It seems that the shift-rows in the 32bit implementation is shift columns instead.
So my guess is that the 32bit implementation returns different output than the 8bit implementat... |
consider that an attacker has the public key $(n, e)$, where $n$ is $1024$ bits long, the $32$ largest bits of $p$ (where $n = p \cdot q$), as well as $u = p^{-1} \pmod q$. Is there an attack that would allow this attacker to perform an attack on rsa and therefore be able to decrypt a message or retrieve the private ke... |
I am a beginner in cryptosystems and I hope I would be accepted in the community.
I was trying to implement Singh and Singh (2015) ECC image encryption algorithm on Matlab.
I have been able to encrypt and decrypt images successfully with the algorithm. However, the width of my cipher image increases by (1/group) x plai... |
I was trying to make a software only implementation of AES (Rijndael). At first I was able to implement it using table lookups for the Galois field multiplication and also for the SBox, but, I really wanted to remove all table lookups as they are prone to cache timing attacks. But implementing the Galois field Multipli... |
I am writing my Bachelor thesis on topic "Current state of stream ciphers". So my questions is: Which stream ciphers are used the most. So far I have A5 family, RC4, E0 (Bluetooth), Snow 3G and ZUC (5G), Salsa20 family (Chacha20) and block ciphers in some operation modes (OFB, CTR).
I am missing whole lightweight crypt... |
For a crypto course I need to realize a small software project where a client and a server want to communicate over a unsecured network. They both have the same secret. So I bascially have to secure Diffie Hellman against MIM attacks.
Now I must admit that I don't really understand the mathematics behind DH, but I gra... |
An attacker is equipped with a computer that performs 10 trillion (1013) DES decryptions per second, what is the average time required, in hours, for a brute force attacker to break DES? Key size is 56 bits.
I tried 256/1013 divided by 3600 but the answer is incorrect.
|
I've spent the night reversing the implementation of the 'Basic Text Encryptor' from Jasypt [1]. The algorithm is defined in documentation as 'PBEWithMD5AndDES'.
The implementation is this:
A random 64-bit salt is generated
The secret is generated as
secret = password + salt
for i in range(0, 1000):
secret = md5... |
Alright so I have some understanding of encryption and how it works. I was trying to explain it to my friend and a few others I couldn't at the time. I later came up with an analogy.
How accurate is this without getting too in depth
Dale, Sam, and Max are all sitting in a class room at their desks
[Dale]---[Sam]---[M... |
I am working on a system that includes our dear friends Alice, Bob, and a server that is only partially trusted. I have spent the majority of the day reading up on various cryptography methods, but I have concluded that I need some help to decide on the ones that best fit my use case.
For starters, I do not need authen... |
This is a question out of curiosity! I really don't know of any other block cipher that is as secure as AES that has a substitution permutation structure and can be used as an alternative to AES to protect implementations against cache timing attacks.
Searching Google, revealed other NIST finalists, but the best of the... |
So far, as I understand it, two ways to reduce the complexity of Argon2i have been found, one of which was fixed in Argon2 1.3, and one of which is still unfixed but is not a practical problem given enough Argon2i passes.
What I have not seen properly explained anywhere, is whether these weaknesses effect Argon2id, or ... |
Hello I'm working in a school project and I'm trying to resolve an issue.
I have a server, a BLE device and a computer.
The BLE device is constantly advertising data, I'm using 7bytes of the data leaving 17 bytes left and I want to use the rest of the bytes to check the authenticity of the BLE device.
So, when a comput... |
Assume that, in the available environment, it is not possible to use modern password hashing functions (bcrypt, scrypt, Argon2, PBKDF2, etc.), so it is necessary to roll my own stand-in, until they become available. (Or call it a theoretical question, because either way I'll learn something from your answers.)
With a s... |
GCM is designed to use a 96-bit nonce, which can be generated either randomly or deterministically. If you use a nonce that isn't 96 bits then it is padded and hashed with GHASH to create a pseudorandom nonce (and block counter) instead. For example, suppose that you generated uniformly random 128-bit nonces, these wou... |
I have all of the Shamir's secret shares required to Lagrange-interpolate f(0), which represents an ECDSA private key. The field of this object is secp256k1, which has associated prime number p=115792089237316195423570985008687907853269984665640564039457584007908834671663.
The Lagrange interpolation produces a negative... |
Here is the scenario,
I am signing roughly 1000 messages, which consist of 16 byte hashes, with 1024 bit RSA.
The private key is only used to sign the hashes, and there is no padding scheme.
The attacker has access to all 1000 messages and the public key. That is all they have to work with (no chosen plaintext ability... |
This question arose from a new context under early developments. If cryptographic operations are not well chosen or badly sequenced, please do notice it along your answer or comments: I am a layman in cryptography. If you think this post should be improved, any constructive feedbacks are welcome, I am new to this stack... |
I just want to know that can we write encryption and decryption formula like
$C=E(P,K)$ instead of $C=E(K,P)$
|
Recently, I try to read some papers about Password Authenticated Key Exchange (PAKE). I can’t understand the meaning of “dummy password .” Can someone gives a concrete definition of it. And what is the difference between password and dummy password?
The context for this question is the following sentence:
then, we m... |
I'm reading the Handbook of Applied Cryptography by Alfred J. Menezes et al. Especially, I'm stuck with the case that reusing key for CBC encryption and CBC-MAC in MAC-then-encrypt structure.
My question is: in MAC-then-encrypt structure, that textbook's p.367 states
Example (improper combination of CBC-MAC and CBC ... |
Really, I could not understand why the decryption process of CFB malleability gadget takes the next cipher block while PGP uses the previous block as shown in the equations in the attached image, I read Efail attack paper but I could not understand how it works? Could someone clarify it to me.
|
The scenario is described as following: Let $A$ an user that is transmitting an encrypted (with its own public key $PK_A$) data vector containing its position as $p = Enc(PK_A, [x,y])$ towards a group of users $U = [u_1, u_2, \dots, u_n]$.
Is it possible that each of these users belonged to the group $U$ positioned at ... |
My professor showed us the basics of DES, and then displayed this slide where the Complement Trick can be used as a way of cracking DES.
Could someone explain the math to me please?
|
I would like to understand the linear approximation of $(x+y) \bmod 2^n$ by linear masking method in the paper refereed ""Improved Linear Distinguis'hers for SNOW 2.0" by Kaisa Nyberg and Johan Wall´en."
In Page number 14 to 15, one theory has been given. I am unable to understand the $A_r$ matrix computation. Specia... |
My professor showed us the basics of DES, and then displayed this slide where the Meet in the Middle attack can be used as a way of cracking DES. I believe at this stage we are doing 2DES, as opposed to DES or 3DES.
Could someone explain the math to me please?
|
In Diffie-Hellman over $Z_p$, I know that if I choose a random $a$ in $Z_p$ and compute the modular inverse mod p-1, not mod p, then, with generator $g$ of my group, I can compute, for example, $(g^{ab})^{(a^{-1})} = g^{aa^{-1}b} = g^{b}$.
I am asking if a similar process is possible over elliptic curves? If I have a g... |
In Regev's lecture there is "In contrast, virtually all other cryptographic constructions are based on some average-case assumptions.
For example, in cryptographic constructions based on factoring, the assumption is that it is hard to factor
numbers chosen from a certain distribution. But how should we choose this dist... |
Website on https://example.com/login will request client certificate authentication.
If it was directly on https://example.com then using openssl s_client example.com:443 will show client certificate names.
How to get client certificate names on subpath with openssl commandline?
Checking with browser and Wireshark I s... |
Diffie-Hellman Key Exchange Basic Protocol:
Let G be a cyclic group of order $n$ and generator $g$.
Alice chooses $a \in \{0,\ldots,n-1\}$ and Bob chooses $b \in \{0,\ldots,n-1\}$.
Alice computes $h_A = g^a$ and Bob computes $h_B = g^b$.
Alice sends $h_A$ to Bob and Bob sends $h_B$ to Alice.
Alice computes $(h_B)^a =... |
Is there a way to check, (with openssl command for example), if a given public key match with a private key ?
Thanks
|
I am dealing with protocol design regarding the Diffie-Hellman Key Exchange (DHKE). The DHKE is performed by the Key Master and some Slave Component. Afterwards, a session key is transmitted using the secure channel provided by the DHKE (i.e. the session key is protected using the shared DH key).
From a logical standpo... |
Consider the following very simple cipher, where, to send length $n$ bit-strings, we randomly correspond the numbers $1, 2, 3, ..., N$ with $n$ bits, so the key is the correspondence between each integer and the bit value it maps to. Then, to share a bit-string, Alice will send Bob a permutation of the integers $1, 2,... |
This is a follow-up to this question (thanks to answers from @fgrieu and @kelalaka
) about the format of a salt when hashing a salted password.
I realize this is pretty much academic, as the proposed uniterated SHA-256 of a salted password is already acknowledged to be much less secure than trusted password storage alg... |
Regardless of the KDF I will use, let's imagine that I have to generate two keys: one for authentication and the other for encryption (which will always remain on the device that generates it until logout). Of course, the key I use to encrypt and decrypt must always be the same.
I read some answers on this site that su... |
I've started looking into differential privacy from scratch following "The Algorithmic Foundations of Differential Privacy" by Dwork and Roth (freely available online). The mathematical notation is however somewhat confusing. On page 16, they define Probability simplex and Randomized algorithm as:
Is it correct that $... |
I'm building a system to authenticate users to a website via a single use login token. This token can either be included in links OR typed in directly by the user as a code. Because of that second requirement I'm interested in the token being as short as possible in order to improve user experience.
There are plenty of... |
I was reading a paper (Function Secret Sharing by Boyle, Gilboa and Ishai, PDF) on Function Secret Sharing and in that the author talked about a naive construction of a p party DPF wherein the truth table is additively shared.
What does it mean to share the truth table and how does it help?
|
Background of the problem: I am undertaking a blockchain course at University and I have taken up a case study for blockchain that relates to logistics. The requirements are simple, yet I am confused with the storage segment of blockchain. Given that we have a table of deliveries to be made, I incorporate certain field... |
For consistency's sake, M is the message, H1 and H2 are separate hash functions.
I've heard that concatenation or XORing hash outputs together do not provide improved security against preimage and collision attacks. In some cases, they actually reduce the security instead. Therefore, consider the following scenarios:
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.