# 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.

3,036 questions
102 views

### mapping point on elliptic curve

good evening guys, let us suppose that elliptic curve is given by the following equation $y^2=x^3-x+1 \pmod {127}$ on the following table message $9$ is converted to the point on curve if i ...
342 views

### Encrypting text using Caeser cipher in CFB mode

I am interested in learning and understanding cryptography and its application in every day life. One thing I can't seem to get my head around is encrypting plaintext using a block mode such as CFB. I ...
51 views

### Is one big file as secure as X small files with the same password?

Hello people of StackExchange. It's my first time asking and I know little about Cryptography, so be gentle. My problem can be simplified to this: I can create a 2GB Volume that contains 1GB of text ...
57 views

### Is it possible to delegate re-encryption key generation?

In a non-interactive proxy re-encryption scheme, Alice, with the key pair $(pk_a, sk_a)$, needs to issue a re-encryption key $re_{a\rightarrow b}$ once she wants to share her secret message with Bob, ...
77 views

### Would the Secure Enclaves such as Keystone or Intel SGX obviate the need for cryptography

Would the use of Secure Enclaves such as Keystone or Intel SGX obviate the need for cryptography? Rendering cryptography irrelevant in the decades ahead?
92 views

### Can perfect forward secrecy introduce vulnerabilities?

Is it always a win or could PFS algorithms introduce new attack vectors or weaken the level of secrecy vs not being used?
109 views

### Why are matrices so common in symmetric encryption?

Matrices have been used in symmetric ciphers since the Hill Cipher (before?) all the way up to modern ciphers such as Twofish and AES. I understand matrices can be invertible, therefore making them ...
452 views

### RSA encryption/decryption process is not working correctly

I'm trying to apply the RSA cryptosystem to encrypt a byte M=72, using predefined modulus n, public key exponent ...
262 views

### What is the name of an attack where the compromise of one key compromises the whole system?

Consider the following: A whole system depends on the security of one private key and if this key is, for any reason, compromised, the whole system will be compromised. What's a suitable name for ...
96 views

### Is it possible to encrypt a process?

Imagine a hypothetical system as follows: A distributed algorithm running on a Local Area Network (LAN) that allows real-time addition and removal of processors. The addition of a processor is ...
71 views

### What happens if CBC-mode uses the same IV for all processes?

In CBC mode (Cipher Block-chaining mode), each block of plaintext is XOR with the previous ciphertext block before being encrypted. What happens if I use the same IV instead of the previous ciphertext ...
76 views

### Encrypting a 64-bit binary number to a text containing upper- and lowercase, and digits

I am making a tool that generates 16 character long password out of a 64-bit binary number. But I dont know how to make an encryption key for that, or where I can find one. To show what i mean, here ...
290 views

I am new to security and I am wondering if JWT is secure enough. From what I have read online the flow goes like this: Clients log in by sending their credentials to the identity provider. The ...
51 views

### Does hashing an encrypted message suffer from any drawbacks?

I am working on this problem where the set up is like this: There are three hosts: A, B and C. A wants to send a message to C which passes through B. At A the message is hashed, the hash is padded to ...
86 views

### Newbie question: one-way functions in cryptography

I'm reading this article on the basics of cryptography and it says that the main principle is about taking such an algorithm that knowing the end result and the algorithm, an eavesdropper wouldn't be ...
74 views

### Patent Status & Usability of AE Modes [closed]

Post Structure: Sources Cited Question & Details Before You Answer Useful Info From Comments Sources Cited: https://blog.cryptographyengineering.com/2012/05/19/how-to-choose-authenticated-...
105 views

### Double encryption : what method is the best?

Given the block-ciphers defined as follows : $1.$ $C=$ $E_{k1}($$E_{k2}$$(M))$ $2.$ $C=$ $E_{k1{\oplus}k2}$$(M)$ $3.$ $C=$ $(E_{k1}(r),E_{k2}(r$ ${\oplus}$ $M))$ where $C$ is the cipher ...
3k views

### Is a PRG more costly than AES or any other encryption standard?

I know that there are many encryption standards that take a key and sometimes an IV, and produces a cipher-text (the most prominent one is AES). These standards usually involve many rounds of addition ...
79 views

### Find $F(2x)$ from $F(x) = a^x \bmod p$

Given $F(x) = a^x \bmod p$, where $a$ is a primitive root of $p$, Is it possible to work out what $F(2x)$ or $F(3x)$, etc if you know what $F(x)$ is but not $x$. If you use $F(x)$ then $F(2x)$, etc ...
171 views

### What role does Representation Theory play in Cryptography?

Shannon said that every cryptosystem can be expressed as a system of linear equations with a large number of unknowns of complex type. In cryptography groups are used since they are a natural ...
72 views

### Ethereum RLPx protocol for inter-node communication - flaws in the encryption

Ethereum uses RLPx/devp2p for inter-node communication. The protocol is encrypted using Elliptic Curve Integrated Encryption Scheme (see ref) Under Known-Issues I found this paragraph: The RLPx ...
127 views

### Private Key Sharding - How is it Secure in a Distributed Network?

In a Distributed Network in order for a private key not to be compromised sharding will have to take place off the network, correct? If so: Why is it when a Distributed Network shards private keys ...
240 views

### What is the shortest type of text encryption?

I have the following text that I want to encrypt with a password: "This is my secret password: 1234567890" encrypted with AES: SgAHzFc3vluxLqZuzZKg8dzhy918N41SUU1BfBXN8CoEDfVJ0R9hox8PT2jKYA== pass:...
67 views

### Is there any way to track if a ciphertext has been decypted?

Just like the case of a box that has been sealed. We can detect if the box has been opened or not by looking at the seal. Is there any way in cryptography or any encryption scheme that allows this to ...
205 views

### What is the meaning of probabilistic polynomial time adversary?

I learned about probabilistic polynomial time adversary, but I have some doubt. Is probabilistic polynomial time adversary referred to those who attack in polynomial time with the form of ...
302 views

### How many rounds of encryption is ideal?

I am a newbie to the cryptography world. I am working on a custom algorithm that encrypts the data multiple times and results in a cipher text. It uses a different key in each round to encrypt it. I ...
84 views

### How can we compare an encrypted number with a normal number?

I am currently doing a project on privacy preserving encryption using a k-means system and the Paillier encryption algorithm (homomorphic algorithm). I have to send an image of a skin disease to the ...
55 views

### Can one design an asymmetric encryption scheme based on any secret sharing scheme? Are they that closely related?

I've seen both asymmetric encryption and secret sharing schemes based on graph 3-coloring, and I'm curious if this is a coincidence due to some peculiar property of graph 3-coloring alone.
163 views

### How to encrypt the truth table in garbled circuits?

I'm learning about garbled circuits, and I'm using the following tutorial: Yao's Protocol. I have a questions regarding to construction (encryption) of truth table in garbled circuits. Slide 14 says:...
849 views

### What is different below two Ciphersuites?

I have two questions; I need an explanation for the differences of below two cipher suites. How do they work with SSL/TLS protocol? (my main concern first one doesn't have '...
141 views

### Multiple encryption using the same key

I am a newbie to this area. I have a program that uses a custom algorithm to encrypt a message. I can encrypt it as many times as I want, but using the same key. I have couple of questions so that I ...
84 views

### Encrypt a file in a way that decryption requires every recipient's cooperation

The best related concept I can think of is the two-man rule. https://en.wikipedia.org/wiki/Two-man_rule. To put it simply, n people are required to give their authorization before a system / secret ...
95 views

147 views

### Finite Automata and Application to Cryptography

The automated inverse theory in cryptography, points to autonomous finite automata, which is relative to the canonical form for one-key cryptosystems based on finite automata, the public key ...
304 views

### Encryption wth expiry date

Is there a way to encrypt a file with expiry date? I want to share a file which can be decrypted using a key until certain date. After that date, the recipient should not be able to decrypt the file....
75 views

### Encryption using deterministic CSPRNG as secure as CSPRNG

As a beginner it seems that a scheme derived from a CSPRNG should be as secure as that CSPRNG. Is this a correct assumption? Are there restrictions or known special cases? A rough outline would be: ...
139 views

### Encrypting/Decrypting sensitive information for storage purpose

I want to store account numbers and routing numbers into SQL database, and i was looking for best way to encrypt/decrypt this sensitive information. After researching i found i can use symmetric (like ...
75 views

### 3DES Feasibility and Security [closed]

Questions are as following: Is 3DES still feasible (in terms of security and performance) to use? Is 3DES safe to use in ECB mode? Every time on giving the same input (plain text) to encrypt via 3DES ...
86 views

### Is there any valuable Cryptography certification for working in the field? [closed]

I'm an amateur math/crypto/CS passionate, but I find myself without any degree or certification that gives credit to my skill-set, specially on math and crypto. Currently I'm designing cryptosystem on ...
112 views

### Login security and plaintext of a password stored in Argon2i to derive a key via halite safe?

I'm using Symfony 4. I have set parameters on all my Argon2 stuff below so that it takes 1s per iteration. This website is supposed to encrypt HIPAA information. Basically I have a table like this <...