Questions tagged [encryption]

Encryption is the process of transforming plaintext using a cipher into ciphertext to make it unreadable to anyone except those possessing the key. Decryption is the process of transforming that ciphertext back into plaintext, using the key.

299 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
106 views

exchanging private key between service and iPhone app - digital signing

I need to do digital signing of my request data which will be sent to the server. My server sends distinct private keys to her clients after authentication and expects all responses to be digitally ...
1
vote
0answers
236 views

Convergent encryption has dictionary attack, but why hash function doesn't?

Convergent encryption (CE), $E_k(d)$, is a way to encrypt the data $d$, with the characteristic that the encryption key $k$ is $k=h(d)$, where $h(\cdot)$ is a cryptographic hash function. Consider a ...
1
vote
0answers
650 views

Public and Private key encryption in simple math

Can anybody show me (or point me to resource) how to generate public key and private key with simple math? Steps which can be reproduced in a simple calculator – so the message, keys all can be ...
1
vote
0answers
106 views

Modulo settings for successful encryption?

I saw this awesome video which shows how encryption works using "discrete logarithm". The example says: $3^x\mod17$. I understood that $3$ is called “generator”, because it has no "straight" root and ...
1
vote
0answers
1k views

Commutative Encryption with RSA scheme?

I wanted to know how I could manage to do what I'm going to tell you next, with the RSA encryption/decryption scheme. So Alice and Bob each have a public key $(n, e)$ and a private key $(p, q, d)$; ...
1
vote
0answers
404 views

El Gamal encryption scheme and symmetric encryption scheme

Consider the El Gamal encryption scheme, a symmetric encryption scheme (KG,E,D), and the following hybrid encryption scheme having an encryption algorithm that, on input a public key (G,q,g,h), where ...
1
vote
0answers
366 views

How we transfer 128bits cipher to a 4x4 matrix for AES input?

Why the input cipher for AES encryption, can write in 4x4 matrix with 8 bits entires, and can said is 128bits? if each cell is 8bits in binary, how we said this matrix is represent 128bits?
1
vote
0answers
408 views

Rabin code same message sent with different $N$

I use Rabin code with modulus $N$. Now assume that Alice sends me a message $m$ $(1\le m\le N)$ encoded by Rabin code. Unfortunately after Alice sent me the text I lose the information about the ...
1
vote
0answers
214 views

Can you show how that RSA does/doesn't provide anonymity?

Considering a CPA-secure version of RSA where the ciphertext is just a rundom element from $Z^*_N$. Does that meet the anonymity requirement in which an cpa adversary cannot distinguish between a ...
1
vote
0answers
105 views

What scheme will allow merging and splitting the result of a function?

I am wondering if it's possible to have a scheme as follows. Here is the scenario: we have a set of objects (e.g. strings) {O1, O2, ..., On} we have a set of users {U1, U2, ..., Um} each user asks ...
1
vote
0answers
1k views

Decrypting a message without the private key using CRT

I am given 5 different encryption modulus, $N$, each ranging from 78 to 88 numbers long. Then for the encryption exponent, each has the same which is 5. Then I am given 5 different encrypted messages, ...
1
vote
0answers
653 views

IV and Headers inside cipher text

I am a bit confused about the use of IV, and key hash. Is the key hash and IV stored inside the headers of the cipher text? Isn't it a security risk to store this header information? By key hash I ...
1
vote
0answers
76 views

Conditions for proving that a signcryption scheme is secure

If I'm able to prove that any scheme satisfies confidentiality ad unforgeability conditions, will it be a valid signcryption scheme, without explicit signature and encryption parts ?
1
vote
0answers
1k views

How compared encryption algorithm in terms of efficiency

I want to compare two cryptographic algorithms. The first algorithm is RSA, and second algorithm is ElGamal elliptic curve cryptography. Now, I’m looking for a way to compare the speed of the two ...
1
vote
2answers
162 views

ZKP: Asymmetric encryption with confidential message and known hash

I'm searching for a ZKP package that supports asymmetric encryption so I can implement the following scenario: Carol encrypts message $m$ with Alice's public key and sends the ciphertext to Alice. ...
1
vote
1answer
233 views

Symmetric Multi-Key Decryption

Is there an encryption decryption scheme in which a group of people are all given different keys, and of which each key can decrypt a file. (I’m not talking about a scenario where a file is encrypted ...
1
vote
1answer
469 views

plaintext distribution ,perfect secrecy cryptosystem

I have been trying to solve the next problem: let pi be a perfect secrecy cryptosystem with specific plaintext probability distribution. How to prove pi will have perfect secrecy for all other ...
1
vote
1answer
144 views

Getting the Encryption Function From the Decryption Function + Decryption Key + Encrypted Item

Is it mathematically possible to always be able to get the encryption algorithm used to encrypt a certain item (file, number, text, ...etc.) by knowing the decryption algorithm that will be used to ...
0
votes
0answers
1 view

Upload my message from WhatsApp and I will read again

How I upload my message from WhatsApp
0
votes
0answers
21 views

How to extract the keyword from a mono-alphabetic substitution cipher

I am a beginner to cryptography and I have the following question. I know that to extract plaintext from a mono-alphabetic substitution cipher I can perform shifting the characters by $n$ times until ...
0
votes
1answer
33 views

Is the scytale a Block Cipher?

Can we consider the Scytale a block cipher ? If yes why ? Can you tell me ?
0
votes
0answers
46 views

Can one encrypt a series of computation?

Normally when one speaks of encryption, it refers to encrypting data. Recently, a client requested a proprietary algorithm be executed on the client-side, in public web browsers. The input data would ...
0
votes
0answers
43 views

OTP XOR two messages

I am working on a project in which we will XOR two messages basically adding them together, $C_1= (M+K)$ and $C_2= (M'+K')$ the result should look like $K\mathbin\|K'$ and $M \oplus M'$. My question ...
0
votes
0answers
29 views

Is Attribute based Encryption used to encrypt data and apply access control on data or apply access control on data only without encryption?

I want to know if i want to encrypt data by using Attribute based Encryption, it consider encryption algorithm or i need to use one of encryption algorithms e.g. AES before use Attribute based ...
0
votes
1answer
86 views

Encryption algorithms that can be used for key exchange and can be eavesdropped

Which algorithms can be used for key exchange between two wireless nodes and are not secured, meaning they can be eavesdropped?
0
votes
0answers
34 views

AES-MixColumn layer in the last round

In the "Introduction to Cryptography: With Coding Theory" by Trappe and Washington, in the chapter about AES algorithm the authors say that in the last round of the encryption algorithm the MixColumn ...
0
votes
1answer
35 views

XORing a nonce with a ciphertext vs XORing a nonce with plain text and then encrypt

Consider a situation where a symmetric key encryption (such as AES) is used to encrypt the plain text. Moreover, a nonce is used to ensure that old communication cannot be used to perform a replay ...
0
votes
0answers
20 views

Meaning of direction in EPS

In EEA (EPS Encryption Algorithm) and EIA (EPS Integrity Algorithm), what exactly does the direction (uplink/downlink) indicate? It's confusing because for both encryption and decryption of a given ...
0
votes
1answer
37 views

Combine signature with encryption

I have some embedded device for which I want to sign and encrypt firmware files. Firmware updates are generated by me and may be installed by the customer. The encryption is supposed to protect the ...
0
votes
0answers
38 views

Are biases narrowed towards the provenance of hard NP complete problems relevant?

I hear of randomized reduction, deterministic reduction and non-deterministic reduction of complexity from A to B problems. This could make things impossible for polynomial time adversary prying into ...
0
votes
0answers
32 views

Can Paillier Encryption has independent decryption key?

As Pailliear cryptosystem secret key $\lambda$, depends on primes $p$ and $q$. As $\lambda = \operatorname{lcm}(p-1,q-1)$. I want decryption key to independent from $p$ and $q$. It can be possible ...
0
votes
1answer
75 views

How to implement GSW13 using Helib or SEAL?

I want to implement the homomorphic encryption scheme proposed in GSW13, and make some changes to it, but seems that there is no library that has already been implemented it. Since this is a ...
0
votes
0answers
24 views

Does it make sense to try CP-ABE in a database for a individual database records?

I'm almost ready for my graduation research project, and I'm looking for an interesting crypto-related topic. I came across CP-ABE, and since I'm working in infosec it caught my attention. Will it ...
0
votes
0answers
78 views

zero knowledge proof of range and set membership

I have a large number of items with a unique serial number and a score (score isn't always unique). There is a list which contains all of the serial numbers and their respective scores. I select 3 ...
0
votes
0answers
41 views

How many AES 128-bit keys does a MIFARE PLUS tag have?

I know that the question is a bit silly but I dont know how many keys can a MIFARE PLUS tag store in it. Provided that I have a MIFARE PLUS S tag with 4k memory room and the key length is 128 bit, ...
0
votes
0answers
18 views

Off-Chain Channel With Multi Participants That Have Different View/Write Access

I'm looking to expand my blockchain ability to have off-chain channels between different participants (let's say more than 2 participants). The requirements: Only the participants of the channel ...
0
votes
0answers
35 views

how to compute Bit Independence criterion of SBOX?

I want to compute BIC's of my Sboxes, I found out some theses for that but I could not understand how to do it. Can someone help me?
0
votes
0answers
33 views

Alternate to distributing master key to every user in circle of trust

I am designing an end-to-end encrypted file storage system where only the user should be able to access their own data. The best I could come up with is a system designed around a master key that is ...
0
votes
0answers
33 views

Method for getting encryption keys from U2F key

There are a number of questions on this site about how/can you use a U2F key to encrypt something. The main problems with doing this are that U2F keys were designed for authentication, so all they can ...
0
votes
0answers
39 views

Identifying the exact encryption procedure by database hash

I was asked to develop an external user administration for a legacy system so that it could be integrated into company processes. This system is mostly written in Python, but also uses unmanaged DLLs. ...
0
votes
0answers
70 views

AES encryption question

If we consider the generation of keys as $$\begin{aligned} K_0 &= E_K(IV); \\ K_{i+1} &= E_{K_i}(A) \end{aligned}$$ Where A is a block of zeroes, and the ciphertext blocks are computed as ...
0
votes
0answers
32 views

Using Alberti Disks to Create a Strong Cipher

Could one use three different disks set at different positions and encrypt a strong message? For example: Wheel 1: A = J Wheel 2: A = E Wheel 3: A = B First letter is encrypted using 1 and then ...
0
votes
0answers
40 views

Is there a protocol for granting access rights to publicly stored encrypted data?

Alice is a data provider and Bob and Charlie are consumers. Alice has a set of data assets $A_*$. Alice wants to share some of her assets with Bob, some with Charlie (they are not necessarily mutually ...
0
votes
0answers
34 views

End-To-End Encryption w/o User Key Management

I'm trying to build an end-to-end encrypted cloud note-taking system but don't want my users to have to deal with any form of key management. Is there any way to achieve this? One idea is to have ...
0
votes
0answers
43 views

Problem with e-cash system with multiple banks

Say that many banks issue electronic cash of a particular type. If there is a malicious bank and user collusion, the malicious bank signs electronic cash for a particular user. This user then takes ...
0
votes
0answers
60 views

How to change the known ciphertext so the known plaintext is changed in AES CBC mode?

I already read a blog about the padding oracle and also some posts about how to change the plaintext but it didn't work out. So I have the encrypted cookie (AES_CBC): ...
0
votes
0answers
43 views

What is the most secure way to encrypt certain properties in logs

I would like to encrypt certain data before logging it. Currently, I use a private key and a static IV. Looking at generating a suitable IV I am concerned about the overhead in generating CSPRNG ...
0
votes
0answers
45 views

Storing secrets on a peer-to-peer network by splitting up AONT data

I've come up with a way to transform a stream of bytes such that if any single bit is modified, it cannot be transformed back into its original state. Here's how it works: Encoding Get hash ...
0
votes
0answers
17 views

I2P Tunnel Creation Build on Request Record Question en(de)cryption method

Not sure if anyone here can help, but if so, sure would appreciate the help. If we read the https://geti2p.net/spec/tunnel-creation documentation page on how I2P creates a tunnel, we can read on the ...
0
votes
0answers
51 views

Errors in LLL cracking knapsack crypto

I am attempting to try some sample knapsack encryption problems and the attack on them using the LLL algorithm. I am using here and here as the guides. They both provide examples to walk through, ...