Reputation
13,816
Next tag badge:
129/100 score
18/20 answers
Badges
3 34 72
Impact
~313k people reached

2d
comment Why is Diffie-Hellman considered in the context of public key cryptography?
@i486 Diffie-Hellman does not directly allow encryption, it is just a key-exchange algorithm (and usually the resulting key should be hashed before being used for anything). You could use that key as a "stream cipher" key stream (i.e. XOR it with a plaintext) and send the result as ciphertext, but then you are actually doing more than just DH.
Apr
12
comment Encryption in which ciphertext is bigger than plaintext?
In cipher designs one usually tries to avoid a (more than constant) increase of the ciphertext.
Apr
4
comment Different implementations of SHA1, which one is correct?
@MaheshPujari This is not a crypto question – maybe ask it on Unix Stack Exchange. (For me, echo -n doesn't seem to remove any newline, it just doesn't append a new one.)
Apr
4
comment Asymmetric sign in public enviroment
@user2029276 Make sure to implement signing, not some kind of encryption. (And I would propose to use an existing crypto library instead of doing it yourself.)
Apr
3
comment Are there any valid, and person readable, checksums possible?
For the flame: You should not use MD5 at all, it is broken. Use a newer Hash function like SHA-2 or SHA-3 instead (maybe suitably truncated before encoding in a readable way).
Mar
31
comment Is it safe to encrypt random data using ECB mode?
@SAIPeregrinus could please you elaborate on your comment in form of a proper answer?
Mar
31
comment Is it safe to encrypt random data using ECB mode?
@ChaitanyaGupta could you put your additional information into the question (there is an "edit" link)?
Mar
19
comment Deciphering text encrypted with a changing cipher
It is not exactly CFB (for $k > 1$), as it doesn't really use blocks. But I guess the proof might be transferable (and might need a large enough $k$).
Mar
18
comment Composition of non-perfect encryption keys
Please note that composing encryption functions is usually not the same as doing some operation on their keys. Also, your meaning of key seems to be as a random variable (which has a distribution), where I would usually think of an individual key.
Mar
18
comment MAC in SSH packet encryption, benefits to not including it?
It allows an attacker to modify your data. If you are an attacker, this would be an advantage ;-) (The MAC is not there for authentication of the other end, but to make sure that an attacker doesn't modify your data.)
Mar
17
comment What practical uses can random hash collisions be put to?
Could you detail how one would use this machine (as described in the question, it is actually a random-first-preimage-machine) to sign different jar files or similar non-random data? Or do you simply want to use the machine as a RNG?
Mar
15
comment Why does consecutive permutations or consecutive substitutions not enhance security?
@fgrieu I guess this could be meant to apply to unkeyed permutations/substitutions only?
Mar
15
comment Encryption with a known plaintext
And if using a single block message (and zero key), your scheme is actually CBC-MAC, of which CMAC is a modification. (CMAC XORs the plaintext with some derived key before encrypting it.)
Mar
8
comment Can IGE mode be parallelized?
Hi, welcome to cryptography Stack Exchange. Your message was migrated here from Security Stack Exchange, because it is about a mode of operation, and better answered here. Please create an account here using the same Mail address as you used as Security SE, to be able to claim your question, possibly edit it, and accept an answer.
Mar
8
comment If a cipher has key length shorter than plaintext, then it is not perfectly secure
Perfect secrecy is not about any time bound attacker. The point is not that brute force takes some smaller number of steps, but that trying all keys gives you less than all messages with a smaller key size.
Mar
8
comment how to integrate 2-3 algorithms to encrypt large data fastly and securely insted using AES?
What is your actual question here?
Feb
23
comment Why is AES resistant to known-plaintext attacks?
Also, if you want to discuss more of this, maybe do this in Chat and not as comments to my answer.
Feb
23
comment Why is AES resistant to known-plaintext attacks?
@Pacerier Ricky likes to add spaces into his comments to "improve" their visual appearance, and does this with TeX (MathJax) formatting. In your inbox, this doesn't work, so the $ and \; (a kind of space) show up. (I think this is not worth the hassle, and doesn't even work with every browser/screen-size/font size combination.)
Feb
12
comment Is the complexity of Caesar (shift) ciphers “n * n!”?
Please note that "decryption" usually means an algorithm which knows the key. And knowing the key, you should be able to decrypt a text in O(length of text).
Feb
8
comment Is $f(x)\oplus x$ a one-way function?
Of course, this is only a counter-example if one-way functions exist at all.