July 15, 2021

How safe is this sha256-based cipher?

Hi, I thought about a quite basic cipher based on sha256. It seems very simple but it’s more an example to be sure I understood how it works:

1. I want to cipher a message of length N bits (N % 256 = 0)
2. Define a password
3. Sha256 the password, it gives one hash
4. Continue to apply sha256 on the previous hash, until you can produce an N bits sequence by concatenating all hashes
5. Apply OTP between the message and the sequence of hashes

I guess it has already been proposed and it would probably not be very efficient, but would this be considered as a robust method for the average user? I didn’t include things like preserving the original length of the message etc.

Leave a Reply

Your email address will not be published. Required fields are marked *

Note: By filling this form and submitting your commen, you acknowledge, agree and comply with our terms of service. In addition you acknowledge that you are willingly sharing your email address with AiOWikis and you might receive notification emails from AiOWikis for comment notifications. AiOWiksi guarantees that your email address WILL NOT be used for advertisement or email marketting purposes.

This site uses Akismet to reduce spam. Learn how your comment data is processed.