Encrypt data block with C/C++, platform independent -


say, if have byte array of various length , pass-phrase, quickest way encrypt in platform-independent way?

ps. can make sha1 digest on pass-phrase how apply byte array -- doing simple repeated xor makes obvious.

ps2. sorry, crypto guys, if i"m asking obvious stuff...

a hash (like sha1) create one-way result, cannot decrypt hash. xoring data not secure means, don't that.

if need able decrypt data, suggest using twofish uses symmetric key block cipher , not restricted licensing or patents (thus can find platform independent reference code).


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -