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

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -