Linked Questions
15 questions linked to/from Is SHA-256 secure as a CTR block cipher?
7
votes
1answer
860 views
Can we use a sort of “hash” function in CTR mode instead of a block cipher? [duplicate]
CTR mode does not use the decryption function at all, only the encryption function.
This may suggest that a different primitive that has this "one-way" property could do the trick. For instance, I ...
-1
votes
1answer
1k views
Hash Based Encryption (fast & simple), how well would this compare to AES? [duplicate]
First of all, I know it's a very bad idea to invent your own encryption algorithm. It's better to use existing known, trusted, extensively tested and studied algorithms with a proven track record.
The ...
-1
votes
1answer
349 views
Hash Based Encryption (fast & simple), how well would this compare to AES? [duplicate]
First of all, I know it's a very bad idea to invent your own encryption algorithm. It's better to use existing known, trusted, extensively tested and studied algorithms with a proven track record.
The ...
30
votes
5answers
7k views
Other than password hashes, are there other uses for non-reversible crypto
Hashing is useful for checking that an input matches expectations without giving away the stored expected version - so confirming passwords etc.
But are there other use cases? In general, ...
14
votes
2answers
5k views
What's wrong with XOR encryption with hash and an iterated salt
Suppose you'd use the following algorithm to encrypt a message
Let $k$ be the key to encrypt with
Let $m$ be the message to encrypt
Split $m$ into groups of 512 bytes
Given a hash function with a ...
10
votes
4answers
2k views
Disadvantages of AES-CTR?
On paper, it sounds *very* good to me:
secure
fast (in my tests it's somewhat slower than ECB (but without most of the weaknesses, more on that below) but faster than every other alternative I tested,...
9
votes
2answers
2k views
Does secure hashing imply secure symmetric encryption?
I was wondering if the mere existence of a (by some definition) secure cryptographic hash function immediately implies an equally secure symmetric encryption scheme.
By my understanding, one could to ...
18
votes
2answers
2k views
Can I use HMAC-SHA1 in counter mode to make a stream cipher?
Say I have an embedded device which is only capable of doing HMAC-SHA1 transformations (that device is, in fact, a YubiKey).
Would it be secure to feed it like a block cipher in counter mode to get a ...
4
votes
5answers
841 views
Can hashing become encrypting?
hashing some data and encrypting data share some similar attributes. Surely this is why "Difference between encrypting something and hashing something" has been asked.
The point of this ...
5
votes
2answers
2k views
Hash functions vs Stream Ciphers in terms of Speed
We know that it's possible to create a hash using a stream cipher (for instance, RC4 or AES in Counter Mode). As stated here: "A Pseudo Random Generator (PRG) and a hash function are both Pseudo ...
7
votes
1answer
6k views
Using a hash function as a random number generator
Using MD5 or SHA1 for instance, and applying integers (as seed so to speak) to the hash function, in sequence, and only keeping, say, the first 64 bits of the resulting hash, do we always have a ...
2
votes
2answers
1k views
salsa20 is invertible, useless in CTR mode?
I'm reading the salsa20 spec (sorry for the newbie question, i'm really a newbie here). Every paragraph ends with : "this operation is invertible", I suppose the whole salsa20 algorithm is.
If I use ...
6
votes
3answers
591 views
Can I create a random access CSPRNG from a hash?
Can I use a keyed hash of a counter as a secure CSPRNG?
E.g. 4th random block is Hash(4, seed)
If not, what are the possible attacks?
3
votes
2answers
972 views
Vigenère cipher with sha512 and a little foresight turns to one-time pad. How safe can be?
I'm doing some exercises and of course I have read about the weaknesses of Vigenère cipher because it repeats the key. But what if I use a different hash every time? The hash of the "key + an ...
1
vote
1answer
121 views
Bad custom encryption
I hope you can help me understand the issue. I know creating my own encryption is not a thing which you should do, but I did this simple "encryption" a long time ago and discussed it with my teacher. ...