# All Questions

3 views

### Encrypting with CAPI and decrypting with .net RSACryptoServiceProvider

My question is specific to CAPI and RSACryptoServiceProvider in .net. I am using the CryptEncrypt function to encrypt a string. Then I store the result in a binary file and I decrypt the text in ...
28 views

### Is there any area where AES-CBC cannot be used ? If so, why ?

I would like to know the domains or specific applications where using AES-CBC is not advised due to any drawbacks like sequential encryption of AES-CBC ?
27 views

107 views

### Understanding Pseudo Random Generators

I've been taking a crypto course online. I have a good idea how PRG's and Stream Ciphers work, but I'd love to get some input to help visualize what is actually happening. I understand a seed is used, ...
58 views

### cryptographic data structure wanted: sparse array without membership test

I would like a data structure supporting two operations: set(k,v), and get(k), with the following properties: k can be any number between 0 and something impressively large, like 2^256-1. If there ...
48 views

### Is it possible to find out whether a number is greater than another number without knowing the numbers?

Is it possible to construct a zero knowledge proof that one encrypted number is larger (or not) than another encrypted number without releasing the values of either numbers?
19 views

### What kind of encoding is used in these strings? [on hold]

I think this is the BASE64 encoding but decoding by BASE64 returns meaningless chars. Help me to decode this. The value must be 3-digit numbers. Thanks in advance. AAABBXCXMQAAAAAFCZcxAAAAAAA= ...
61 views

### Why haven't military-precision channel GPS receivers been hacked yet (like game consoles or Apple devices)?

I wonder what is the encryption scheme in these high-precision encrypted GPS streams (the so-called "P(Y) code". If there's a master key needed, then it has to be in every device. How come the key ...
43 views

### Generation of N bit prime numbers -> what is the actual range?

Short version: When generating a prime number of N bits, should I draw random numbers from the range $[0 , 2^n]$, or $[2^{(n-1)} , 2^n]$? Context: I'm trying to implement a toy-version of RSA as a ...
68 views

### Using modulus in one time pad?

I would like to know what is the real purpose of using a modulus in the equivalent of a Vernam cipher: Data $d$, large number $M$ Assume the key length is λ bits. Then M could be 2^λ. k is picked ...
125 views

### Is appending the hash of the plaintext to the end of an encrypted message sufficient to ensure integrity?

Is appending the hash of the plaintext to the end of an encrypted message sufficient to ensure integrity? My reasoning is that the attacker doesn't know all the plaintext, so by having a hash, the ...
38 views

### Forward pseudorandom permutation [on hold]

Please consider the following scenario: The user A and B use their keys, K1 and K2 respectively. Each client have a vector of elements. Each client separately permutes his vector using his key and ...