10,054 reputation
12451
bio website github.com/CodesInChaos
location Frankfurt, Germany
age
visits member for 3 years, 4 months
seen 2 hours ago

Nov
26
comment Is this new server API authentication protocol secure?
The shared key to allow account creation is fine. The big problem with your approach is that you rely on the secrecy of the shared key for everything. A good design only uses that shared key to ensure that only authorized clients can create an account and nothing more. Distributing the server's public key (or its finger print) isn't harder than distributing the application code or the shared key. But it has the huge advantage that it doesn't need to be confidential.
Nov
26
reviewed Approve suggested edit on Upper bound Linear Feedback Shift Register
Nov
26
reviewed Approve suggested edit on password generation: random length or max length
Nov
25
comment Is this new server API authentication protocol secure?
At minimum you should add a tag to each MAC to ensure MACs created for one purpose can't be used for another purpose. But even then it's an ugly and fragile (shared key for all users. WTF) protocol. It's far easier and stronger to ensure that SSL isn't MitMed. Why do you think it's easier to impersonate the server in SSL than to steal the shared key?
Nov
25
revised Difference between Pedersen commitment and commitment based on ElGamal
deleted 1 characters in body
Nov
25
comment Is this new server API authentication protocol secure?
Why no SSL/TLS? If you need custom features, consider building on top of SSL, instead of replacing it.
Nov
25
comment Shamir's Simple Sharing Scheme - preventing partial recovery of data
@user8911 Without an answer to my first question, this can't be answered well. Blindly applying my second point is not the way to go and can be broken by guessing the remaining bits.
Nov
25
comment Shamir's Simple Sharing Scheme - preventing partial recovery of data
1) How would that partial damage happen? Why do you care about this scenario 2) It's often a good idea to apply secret sharing to a symmetric key, not to the data itself.
Nov
24
comment AES and Known-plaintext attack
Nobody has shown that AES is secure. It's just that nobody has found a way to break it.
Nov
24
comment AES and Known-plaintext attack
It's rather the other way round. There are no paper that show AES is vulnerable to known-plaintext attacks.
Nov
24
answered Why is this MAC based on secure PRF with ordering and randomization insecure?
Nov
23
revised Why does the padding in Merkle–Damgård hash functions like MD5 contain the message length?
edited tags
Nov
23
comment Why is this MAC based on secure PRF with ordering and randomization insecure?
Related Block ordering and security in a MAC? and Why shouldn't one build a MAC by XORing multiple message blocks?
Nov
23
comment Is there a cryptographic method to add noise to a plaintext instead of actually encrypting it?
In that case I'd first encrypt the data, and then add a post processing step that encodes it into a form that looks like plaintext.
Nov
22
reviewed Approve suggested edit on Is encrypting a public key with a symmetric key safe?
Nov
22
comment Can cryptocurrency mining devices be used for cryptanalysis?
Most cryptography is far out of brute-force range, even with ASIC. Password hashing is one of the few exceptions. Among the commonly used password hashes, PBKDF2-HMAC-SHA-256 is closest to bitcoin mining. But I suspect mining ASICs are too specialized to attack it.
Nov
22
comment Creating a secure key
HKDF (with SHA-2 as underlying hash) is the cleanest solution IMO. But a plain SHA-2 hash to extract the entropy would be perfectly fine. // In theory there are some provably secure constructions, in practice SHA-2 I'd prefer a proper hash like SHA-2 over all of them.
Nov
22
comment Block Cipher vs Stream Cipher in Web Application
Web applications typically use HTTPS. Which encrypts the TCP stream using SSL/TLS. SSL can use both stream and block ciphers. In principle they're both fine for this, but SSL made some dumb design choices that weaken block ciphers. On the other hand it only supports a decent stream cipher (AES in GCM mode) in TLS 1.2 which isn't widely supported yet.
Nov
22
comment How to put the hash of a PDF file in the PDF file?
With CRC yes, with MD5 no. Standard practice for similar applications is to ignore the hash or signature part while hashing.
Nov
21
revised Applying differential cryptanalysis to ciphers with addition mod $2^{32}$
edited title