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.

4,322 questions
Filter by
Sorted by
Tagged with
13 views

Which among the following is a method of encryption where units of plain text are replaced with cipher text according to a fixed system? [closed]

Substitution Cipher DES AES All of the above Basically, I am confused between all three. Because all of them are symmetric. Yet, AES and DES are block ciphers. Any idea?
44 views

How to break RSA when $q = e^{-1} \bmod p$?

This problem was posed during a recently ended contest. I am given a value for n and e. e = 65537. n is a 2048-bit number. p is a 1024-bit prime number. q is the modular inverse of e mod p. That's ...
• 103
1 vote
234 views

Keyless cipher proof

I answered a question on StackOverflow yesterday that was asking why the following keyless encoding/decoding scheme for 16-bit numbers worked: Encoding Note that the "shift" operation is ...
• 113
67 views

RSA tutorial question [duplicate]

Looking at the ASU.edu tutorial on RSA encryption, they use a strange notation: $$\text{Decoding exponent:}\quad d = e^{-1}\bmod(p-1)(q-1)$$ Normally when I see any number n taken to the -1 power, I ...
1 vote
40 views

keyring encrypted with public keys

I would like to publicly store a list of public keys of recipients in a way that only the individual recipient ( who holds the private key of a that referenced public key) can see that he is ...
1 vote
55 views

How do you use a PQC Hybrid Shared Secret in Practice?

In https://tools.ietf.org/id/draft-stebila-tls-hybrid-design-03.html, they define (many other sources do too) hybrid shared key exchange as “Hybrid” key exchange, in this context, means the use of ...
• 145
1 vote
69 views

Can a user set his public key without knowing its corresponding private key? [closed]

I'm wondering if in public key infrastructure (PKI), a system user be able to set his public key without knowing its corresponding private key. Can this be done?
• 11
1 vote
43 views

What's the average time to generate IDEA pairs?

I'm trying to implement impossible differential cryptanalysis on IDEA cipher based on the Miss in the Middle Attacks on IDEA and Khufu, I've started by implementing the cryptanalysis on 3.5-Round IDEA ...
• 87
56 views

How SSL (similar version) works?

My book suggested the following protocol to replace SSL: A lot of the terms are familiar to me from the Original SSL, like ChangeCipherSpec message which means ...
• 3
31 views

Are there any encryption schemes where more than one key give the same encryption and decryption operations? [duplicate]

Given an encryption scheme that takes as input a key $k$ and converts it to an encryption operation $E$ via the function $M(k) = E$, is it possible that more than one $k$ can give the same $E$? For ...
20 views

Confirmation of receipt during the fair exchange

Is there a way to confirm the delivery of an item to the recipient e.g(bank payment)? Let's say there is a trust third party in the protocol. The sender's side (honest) says that it sent the payment, ...
48 views

Using ed22519 signature as entropy

I am developing an application in which all application state is entirely public. Each user of the application is equipped with their own ed22519 keypair, and the application can only ask users for ...
13 views

Why does the distribution of BFV's sk use $R_2$, and what are the disadvantages of using $\chi$?

Instead of sampling $\mathbf{s},\mathbf{u} \gets \chi$, we will sample $\mathbf{s},\mathbf{u}$ from $R_2$, i.e. the norm $||\mathbf{s}||=||\mathbf{u}|| = 1$. $\cdots$. The security implications of ...
60 views

ElGamal cryptosystem

ElGamal cryptosystem provides multiplicative homomorphic property which can also be converted to additive homomorphic property. Can we use both properties simultaneously? For example, we want to ...
36 views

The benefit of the shared key generated from ECDH key exchange protocol [duplicate]

What the benefit of the shared key that generated from ECDH key exchange protocol? Can I use it to encrypt the message or encrypt the public key of asymmetric encryption?
64 views

Can functional encryption encrypt and decrypt negative integers?

I want to use DCR-based functional encryption for encryption and decryption purpose. However, I'm unsure whether DCR-based functional encryption can support negative integers. Is there any ...
• 21
73 views

Encryption algorithm where proving the decryption is equal to spoiling the key?

Is there an encryption algorithm or MAC algorithm for which NO zero-knowledge-proof exists, provably? I want people who want to prove that a ciphertext decrypts into some plaintext to have to spoil ...
• 115
1 vote
44 views

Can asymmetric encryption be used in HMAC, and still ensure the data has not been tampered with? [closed]

Suppose I want to send a message, but not privately; I want everybody to see it, even an attacker in the middle. I would do this by appending a public key to the start of the data, which could be used ...
• 11
53 views

Problem with implementation of Enigma Machine

I'm having trouble making an implementation of Enigma Machine in VBA. My question is about implementing the rotors and their move. To be more precise, I will show below the way that I code my Enigma ...
1 vote
55 views

Is it safe to use a signed message as a private encryption key?

Can I safely use a signature as a private key for the purposes of encryption? ...
• 111
41 views

Are Encryption, Key Exchanges and Digital Signature the application of asymmetric encryption

Reading the wikipedia entry on asymmetric cryptography, will I be wrong to conclude that there are 3 main broad category of application for asymmetric cryptography? Mainly: encryption digital ...
• 444
42 views

Davies-Meyer mode

While reading about the Davies-Meyer mode (and other modes), I have got some doubts: What can I use as the key to the encryption $E$? Since I am generating hash of a message (not MAC), then there ...
• 593
12 views

Make certificate and private key available only to a single app [migrated]

I want to make a smart card reader app, that sends read data to a server. In order to be certain in the integrity of the data, I want to use a client certificate to communicate with the server and I ...
25 views

can I get individual data by paillier decryption if we send aggregated encrypted data?

suppose there are different user data for n Smart meters. we encrypt all the individual data and then add them together. After decrypting the summation, how can we retrieve the original data? We are ...
104 views

About the complexity of a path finding attack for a path encrypted with a block cipher (like AES). How many AES calculations count as secure?

Out of $N = s^3$ total points we pick a starting point $p$ and an end point $q$ with $$p=(p_1, p_2)$$ $$q=(q_1,q_2)$$ $$p_1,q_1 \in [0,s)$$ $$p_2,q_2 \in [0,s^2)$$ We want to find a path in between ...
• 475
23 views

The appropriate smoothness bound

My question roots from another question asked in the community since I do not have enough reputation points to comment on the answer, I was hoping I could ask it here. How was the individual asking ...
1 vote
40 views

Is there any function that calculates Frobenius Norm in palisade? (Homomorphic encryption)

As I understand, Frobenius Norm is supported under homomorphic encryption. (It’s HE compatible.) However, I cannot seem to find the corresponding function in palisade’s library and documentation. Or ...
• 11
266 views

Does multiple encryption help?

Suppose some original material (say a text message, text.txt) is encrypted multiple times, (say using ChaCha20) each time with a different key. Suppose the output of this process is a binary (output....
• 21
54 views

How round constants are chosen in a block cipher?

Block ciphers that are NOT LIGHTWEIGHT use relatively complex key scheduling algorithms to enhance their security and thwart some of the known cryptographic attacks. In such ciphers round constants ...
57 views

Short description of encryption methods? [closed]

I can't seem to wrap my head around these encryption methods. I can't find a brief description for any of them. Hash then encrypt MAC then encrypt Encrypt and MAC Encrypt then MAC
19 views

Looking for multi-party key exchange/shared secret algorithm with specific requirements

I'm looking for the ability to create a SINGLE CONSTANT shared secret amongst two or more users (a group) AND if a new user is added to such a secured group the new user should also be able to learn ...
• 169
52 views

Security definition for IND-CPA of public key encryption

In the security game between the challenger and the adversary for the security definition of public key encryption, the challenger creates and gives the public key pk to the adversary. The adversary ...
• 113
65 views

What E means in Diffie Hellman protocol?

I was looking for an example of protocol to verify user's identity using Diffie Hellman which works like this: client sends: $g^x$, ...
• 3
59 views

1 vote
45 views

Classical vs Quantum-Safe Algorithms and Protocols / Application Approach

Various proposals are being explored for X509 V3 certificates in a Post Quantum Cryptography (PQC) world. Currently, these include just having a certificate for classical and PQ, having a hybrid ...
• 145