Tagged Questions
1
vote
4answers
300 views
SSH: reusing public keys and known-man-in-the-middle
Usually, people recommend to use a single private-public key pair everywhere (if we're not talking about a possibility of compromising the private key):
Best Practice: “One per-user ssh key” or ...
6
votes
3answers
207 views
How much added security do I really get with a longer key size?
Imagine I have a cipher which supports keys of 128, 192 or 256 bits. Suppose that there are no vulnerabilities in the cipher regardless of key length. I'm going to use it to encrypt something, and ...
0
votes
1answer
154 views
How key_derivation and key_verification functions are implemented of a 7-zip archive's encryption mechanism?
I am curious about how password recovery works for password protected files. And I want to know the exact flow of the 7-zip encryption mechanism :) !!
7-zip uses the AES-256 encryption algorithm in ...
7
votes
4answers
650 views
Generate cryptographically strong pseudorandom numbers in Javascript?
Is there any good way to generate cryptographically strong pseudorandom (or true random) numbers in Javascript?
The crucial requirement: if a.com's Javascript generates some random numbers, no one ...
7
votes
1answer
1k views
How should API keys be generated?
I want to make sure requests can't be forged and sent on to my server. In order to do this I need to generate an API key per user on my system. The purpose of the key will be to sign requests on the ...
2
votes
2answers
147 views
From password to key
Can you explain this passage from Wikipedia?
When a password (or passphrase) is used as an encryption key, well-designed cryptosystems first run it through a key derivation function which adds a ...
1
vote
1answer
106 views
Inner Workings of Public Key Encryption
After watching this video explaining PKE with tennis balls (interesting), it left me with a few particular questions that I'm having trouble finding answers to:
I assume that they keys used to ...
-1
votes
1answer
152 views
How to find the encryption of a cipher and apply it to another key [closed]
I am very new to cryptography so please help me out with this one
I have a Question Key-1 which + some encryption gives Answer key-1. I have to find the encryption to apply it to another Question ...
2
votes
1answer
1k views
Is your PGP passphrase used to decrypt an encrypted private key, or needed in conjunction with the private key to decrypt the message?
If the former, then if the private key can be used to digitally sign messages, why doesn't your client offer to encrypt this highly sensitive piece of data?
If the latter, then if someone had access ...
2
votes
1answer
896 views
Convert RSA public key to the right format
I need to send a public key to my bank. I'm using CoreFTP which allows the generation of keys using RSA. It says that it generates "OpenSSH compatible certificates [sic]" when you press the generate ...
5
votes
3answers
3k views
What is the DUKPT Key Derivation Function?
I'm tasked with decrypting ciphertext acquired from an encrypted card reader. The card reader utilizes DUKPT(derived unique key per transaction) scheme and 3DES encryption. I don't have a problem with ...
2
votes
3answers
398 views
What is the recomended algorithm to create a key from a password?
In my new secret document encryption utility, the key for symmetric encryption = the hash of a random salt and a user provided password.
It is necessary to have a slow hash function in order to ...
6
votes
1answer
464 views
Select a TripleDES key so that it effectively behaves as regular DES
I'm working with a smartcard (DESFire) that supports both TripleDES and DES. In the specs it is stated that both modes of operation use 16 bytes keys. When the first 8 bytes in the key are identical ...
2
votes
3answers
1k views
RSA 4096 with AES 256 Encryption Process Using PyCrypto
I have the following process for encrypting and decrypting data in a python script using the PyCrypto module:
Encryption - Server A
AES 256 shared key is generated
Associated IV is generated
Data ...
3
votes
3answers
993 views
Generate a PGP key with more than 4096 bits?
I would like to know if generating a PGP key with a number of bits higher than 4096 is possible and if so how?
9
votes
3answers
596 views
Is TDEA (TripleDES) invulnerable to the weak keys of DES?
The key space of DES includes some keys that are weak, which results in a ciphertext that is extra vulnerable to cryptanalysis.
Is TDEA (also known as TripleDES) invulnerable to those weak keys? Or, ...
2
votes
1answer
987 views
DUKPT - Sample data other then in X9.24
I wrote some code that does PIN encryption/decryption according to rules in X9.24.
It works great with examples provided in ANSI doc, but doesn't work with actual device from the client.
Where can I ...
7
votes
1answer
2k views
Where do I get prime numbers for Diffie-Hellman? Can I use them twice?
I realise it's very hard to generate suitable prime numbers and generators for the Diffie-Hellman key exchange.
What is the best way to generate them? And if I have one, can I use it twice? ...
0
votes
1answer
145 views
Safer k128 key schedule
Can someone explain to me how safer 128's key schedule works? there are many parts that make no sense because they were not described at all in the paper (pages 3 and 5 in the pdf).
The second ...
5
votes
1answer
272 views
Asynchonous Linear Feedback Shift Register : test vectors
Well I've been working on coding LFSR structures for my research projects.
Being able to find sources on the subject, I've been able to test a single LFSR with different initialisation and TAP ...
8
votes
1answer
384 views
Is a 2047-bit prime weaker than a 2048-bit prime?
I have a safe prime generator I'd like to speed up. I can benefit from a significant performance gain if the high order bit in the returned prime can be either 1 or 0. The returned prime would be ...
11
votes
2answers
546 views
How many iterations of Rabin-Miller should be used to generate cryptographic safe primes?
I am generating a 2048-bit safe prime for a Diffie-Hellman-type key, p such that p and (p-1)/2 are both prime.
How few iterations of Rabin-Miller can I use on both p and (p-1)/2 and still be ...