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.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

what is difference between CKKS bootstrapping an TFHE bootstrapping? [closed]

Compare the libraries how they are different. all the libraries are implement using LWE hard problem. compare with HElib
0
votes
0answers
10 views

How to sign CAM/DENM messages using mbed LTS libray with ECDSA (EEE Std 1609.2)

I have read ETSI TS 103 097 and EEE Std 1609.2 which gives me the security data structure defined in ASN.1 notation. I want to use mbed LTS to calculate the ECDSA signature. I understand that I should ...
1
vote
1answer
40 views

Using one seed to create signing key pair and encryption key

I'm working on creating a secure digital vault. I'm using mnemonic to generate a seed. The seed is used to generate a signing key pair for identity verification. However I want to also encrypt the ...
1
vote
0answers
49 views

How does the simulator generate a correct transcript under HVZK with the Fiat-Shamir heuristic?

Background I understand the interactive version of Schnorr's protocol and I understand how the simulator can generate an output that is i.i.d to the output of the prover-verifier: Question What I don'...
0
votes
2answers
58 views

hiding bits inside random bits, is this some sort of encryption?

Let's say that I uniformly sample a 1000 bits randomly. Then, I hide a secret of 10 bits on those 1000 bits, randomly. That is, I pick each of the 10 bits and randomly replace them inside the 1000 ...
0
votes
0answers
20 views

Why I'm getting ValueError while trying to unpad the data? [closed]

In short, I'm developing an encrypted chat using ECDH + AES. All encrypting and decrypting algorithms work just fine when I'm testing them separately. They are also working when there is established ...
0
votes
0answers
33 views

Wireguard: How do I verify web traffic & would it be considered encrypted? [migrated]

I setup a connection between my Windows PC & a VitualBox Debian Server running WireGuard using this walkthrough. The connection appears to be working because the Windows WireGuard Client GUI shows ...
1
vote
2answers
98 views

Is there any fundamental difference between the block cipher operations encryption and decryption?

Is there any fundamental reason to designate one direction of a block cipher as "encryption" and the other "decryption"? Or are these arbitrary choices? Or perhaps practical ...
0
votes
0answers
29 views

What would you tell this string is? [closed]

I have found this string gyO0uqISbC7xThS/f7Wx5Q== but I'm not able to decode it. I've tried Base64, Rot13 and more things but nothing seems to be working. Thanks
0
votes
0answers
64 views

Homomorphic Encryption Library Supporting Addition, Multiplication & Logical Shift

Does anyone know of a C++ homomorphic encryption library that supports addition, multiplication and logical right shift over integers? Some set of instructions that allows the implementation of ...
0
votes
1answer
40 views

Number of Involuntory Keys in Permutation Cipher

I've came with the following problem from the Theory and Practice book by Stinson-Paterson. It states the following: 2.17 (a) Prove that a permutation $\pi$ in the Permutation Cipher is an ...
0
votes
1answer
66 views

Pretty much confused about pretty good privacy-:

Authentication-: I understand that authentication is basically digital signature. But what I don't understand is how it has been explained here specially the RSA key part. It is leading me to huge ...
1
vote
1answer
58 views

Can attacker steal data from AES encrypted table without knowing the key?

I think of a situation that attacker can steal data from AES encrypted table without knowing the key. I tried to search on internet but found nothing about this(may be I were not using the correct ...
0
votes
0answers
36 views

Don't know how to approach this problem, or where to start. Finding an adversary to a hiding and binding game

I have this problem: I also have the python version of this problem here: ...
2
votes
0answers
12 views

Difference between fuzzy vault and fuzzy commitment?

https://dl.acm.org/doi/10.1145/2905055.2905118 Quoting the above paper's abstract, "Biometric cryptosystem can apply fuzzy vault, fuzzy commitment, helper data and secure sketch, whereas, ...
2
votes
1answer
76 views

What is the global resource expense (financial, energy, computing power & time) due to the need for cryptography?

Classic disclaimer: there may be a better place to ask this question, if so comment and I will be happy to move it. An example I'm looking for is related to recent scrutiny over energy consumption of ...
0
votes
1answer
30 views

Where to store salt for PBKDF2 and initialization vector for AES via WebCrypto

I would like to build secure notes via javascript and webcrypto. I have found the possibilities to generate strong key via PBKDF2 and encrypt data via ...
1
vote
0answers
53 views

How secure is it to use a 128-bit random seed to derive a 256-bit key for seeding key-pair generation?

We are developing an open-source peer-to-peer app, Mapeo, designed for users with low technical experience (and no email or phone) to collect data in offline environments. We are generating their ...
1
vote
1answer
89 views

Is it okay to avoid a plaintext IV in AES?

The scenario Using AES 256 with CBC mode. (Authentication is done separately. Ignored here.) The goal (explained more later) To avoid sending an unencrypted IV. But since this is being done using .NET ...
0
votes
0answers
29 views

Teaching AI a cryptogram and asking it to solve a similar cryptogram on its own

Say that 1 cipher and another are known to hold some form of correlation. Would it be possible to teach an AI one language through the training of a model and allow it to make make predictions on ...
0
votes
1answer
73 views

How expensive is it to migrate from AES-128 to AES-256

How feasible would it be to migrate from AES-128 to AES-256?
3
votes
1answer
69 views

Construction of S-Box in PRESENT

I'm currently working on an hardware implementation (with verilog) of PRESENT-80 for research purposes. Due to our goal to strengthen the security of PRESENT-80 with Masking and Error Detection I need ...
-1
votes
0answers
30 views

What are the conditions under which quadratic boolean functions are the same?

When are the following two quadratic boolean functions equal? Is it possible only when a_{i,j}=b_{i,j}? Then, how about qubic, quartic, or degree of d? I need your wisdom.
-1
votes
0answers
22 views

Methods and tools for Plain-text Attacks

I have a data block of about 950 byte (previously encoded in QR code). The data is encrypted with an unknown algo+key. The bright side is: I already know many parts of the message, and I have multiple ...
2
votes
0answers
33 views

How to convert plaintext to element of cyclic group in Cramer-Shoup cryptosystem

I am trying to implement a cramer-shoup cryptosystem but I don't understand how to work with the plaintext I want to encrypt. From what I understand, the plaintext needs to be converted to an element ...
4
votes
1answer
93 views

Unable to understand notation regarding Shannon's theorem

the following equation is used to prove the Shannon's theorem by showing the existence of two messages $m_0, m_1$ if $|K| < |M|$ but I'm unable to visualize/understand the probabilities. Especially ...
1
vote
2answers
128 views

Is it safe to store the hash of a plain text?

When encrypting data, I want to verify that the correct key was entered without hashing it. Is it safe to decrypt the ciphertext and compare the hash of it with the stored one or can the plaintext (...
1
vote
1answer
61 views

Is asymmetric decryption guessable?

I am not an amateur in cryptography so this might be a very basic question. I am interested to know if there exist ciphers such that if I encrypt a message with it and then lose first say 300 bits ...
0
votes
1answer
35 views

Encrypted data sharing in decentralised system

Alice encrypts file using her public key and upload it to decentralised file store (some service). Bob buys access to the file. Is it possible to share decrypted file with Bob without having Alice's ...
1
vote
0answers
42 views

Why can't we have AES512 or more? [duplicate]

Look I know AES256 is ridiculously secure but to keep aes secure even after quantum computers, I have a concern. Using the Grovers theorem aes can be reduced from 256 to 128 bits for brute force ...
2
votes
0answers
19 views

Example of exchanging information

I am searching for a simle model that can simulate the following procedure. Suppose that $i$ and $j$ are two agents that each one obtains her state dependets signal $s_i(\omega)$ and $s_j(\omega)$. ...
0
votes
1answer
55 views

How to ensure the data comes from verified source without using asymetric encryption

I'm building a project that is remotely controlled using LoRa and I want to ensure, that nobody can imitate my transmitter and send packets to my receiver. Just encrypting sent data is not enough ...
0
votes
1answer
47 views

Encryption mode of operation with lowest malleability/not vulnerable to bit flip attack?

I am trying to choose a mode of operation for encryption which does has the lowest malleability and is specifically not vulnerable to a bit flip attack. My understanding is that PCBC is the only mode ...
0
votes
0answers
21 views

Linux: Is it possible to encrypt a file so everybody in our organisation can view it? (but no one else) [migrated]

In my organisation we have all s/mime installed in our email clients so we can verify our ID and send encrypted mails. These personal certificates are backed by a trusted server certificate. This ...
1
vote
1answer
78 views

Multiuser encryption, singleuser decryption [duplicate]

I have an hybrid encryption (RSA, AES) for a file sharing project I am working on, where I use a single public key for encryption on the sender side and corresponding private key for decryption on the ...
0
votes
0answers
34 views

Why LFSR stream code is not suitable for encryption? [duplicate]

Why LFSR stream code is not suitable for encryption? Is there a special attack for LFSR?
6
votes
2answers
3k views

Can we use LEGO bricks to construct a cipher algorithm?

I read a paper titled "On the entropy of LEGO", which explains how to calculate the number of ways to combine $n$ $b\times w$ LEGO blocks of the same color. For example, six $2\times4$ ...
0
votes
1answer
35 views

Simple Key Exchange, One Server

I am trying to better understand how TLS works. I understand in the normal use case you need various random values generated and used in the key exchange, to prevent some MITM reusing a previous ...
0
votes
1answer
55 views

Are all public key a result of computing g^k mod p

I just read through the text book definition of Diffie–Hellman key exchange. And from what i understand, the public key that is shared based on the protocol is calculated from: ...
1
vote
0answers
32 views

Is a truly p2p ledger (cryptocurrency) possible?

Is a truly p2p ledger possible, where there is no need for a third party (or a number of third parties) to verify ledgers. Probably a system where the two parties who don't trust each other can verify ...
1
vote
1answer
57 views

Revoke key without communication between the party who revoked it and the party who is validating

I received a very weird question from someone. I feel there is no solution, It would be great if you guys share your views. There are three people Alice, Bob and Sam and they all work for a high-...
2
votes
1answer
89 views

ECB... lacks diffusion(?)

I noticed that the wikipedia page for 'block cipher modes of encryption' states, "The disadvantage of this method is a lack of diffusion.", referring to ECB mode for block cipher encryption. ...
3
votes
1answer
47 views

Is it safe to use AES-CCM only for authentication - i.e. for sending AAD without encrypted data?

We are employing an AES-CCM 128-bit stream-cipher with 7-Byte Nonces and 12-Byte Authentication Tags in a communication protocol. Up until this point there was no need to use Additional Authenticated ...
3
votes
0answers
73 views

Encrypt/Cipher and Decrypt/Decipher a string with a secret

In developing an app I have a simple use case in where I want to encrypt/cipher a string (it could also be a couple of bytes because it's essentially just an IP-Address). On the output I think it ...
1
vote
2answers
239 views

Why is possible to encrypt multiple messages within the same stream in AES

I have a standard random key and IV. Then I am creating a cipher using these keys and iv and then encrypt a specific message. Later on, if I try to encrypt another message with the same cipher(which ...
1
vote
1answer
47 views

Formal definition of mono-alphabetic Substitution Cipher

I am trying to write the formal definition for mono-alphabetic Substitution Cipher. I have tried the following $\mathcal{M}:=$ Set of all possible arbitrary length string of English language text, ...
0
votes
0answers
100 views

Why is a two-round Feistel Network not a PRF? [duplicate]

I am a student studying PRP and PRF in school, my prof gave us a thinking question: "Why is a two-round Feistel network not a PRF, even while the component function is a PRF?" I've seen that ...
2
votes
0answers
110 views

An exercise from a textbook

Let $\varepsilon>0$ be a constant. Say an encryption scheme is $\varepsilon$-perfectly secret if for every adversary $\mathcal{A}$ it holds that $$ \operatorname{Pr}\left[\operatorname{PrivK}_{\...
2
votes
1answer
103 views

How to have a hash function that maps from a group element to a binary string of a certain size in charm-crypto?

I am facing a problem in programming with the charm-crypto library. The hash functions for pairing group elements in charm-crypto can only map from a string to a specific field: $\mathbb Z_r$, $G_1$ ...
1
vote
1answer
102 views

Two-way encryption algorithms similar to bcrypt

I'm in need of an algorithm that can perform a very specific task: take a short string, encrypt it using an algorithm which can be scaled to keep up with Moore's Law/has a proof-of-work factor/is ...

1
2 3 4 5
83