Thanks for help! Improve this question. Take a look at qca delta. For verifying a password, you do not need to be able to decrypt it again, so storing a strong salted hash is a better strategy than storing the password itself. Add a comment. Active Oldest Votes. Improve this answer.
Checo R 10 10 silver badges 20 20 bronze badges. Gandalf Gandalf This of course all depends on the levels of security you want. Amit Tomar 4, 5 5 gold badges 47 47 silver badges 81 81 bronze badges. Adam W Adam W 3, 20 20 silver badges 18 18 bronze badges. And the rest of the message is different because it depends on the IV, which is different.
And the different messages can be decrypted into the original plaintext because the IV is included at the beginning of the message. Hi speed, For your question, a detailed explanation has been given above. Here are more discussions about encrypting and decrypting strings in C , and hope these are helpful to you. This can be beneficial to other community members reading this thread.
In case you are interested in a real-world type of scenario, I wrote a blog post last year about encryption. The content you requested has been removed. Ask a question. Quick access. Search related threads. Remove From My Forums. You could also modify the algorithm to have a known given by you randomChar.
But I advise against it, as that is going to extra effort to do something poorly. You should really use something else, for example QCryptographicHash. Just remember to use salt when hashing the password this prevents an attacker from seeing if some passwords in the database are the same. How are we doing? Please help us improve Stack Overflow.
Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more. Asked today. Active today. Asked 11 years, 7 months ago. Active 5 years, 4 months ago. Viewed 32k times. PS: I'm looking simple and nice solution. Thanks for help! Improve this question. Take a look at qca delta. For verifying a password, you do not need to be able to decrypt it again, so storing a strong salted hash is a better strategy than storing the password itself. Add a comment. Active Oldest Votes. Improve this answer.
Checo R 10 10 silver badges 20 20 bronze badges.
0コメント