Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

Snow2 Encoder

 

Snow2 Stream Encoder is somehow more complicated as RC4 one. but has a strong security, unviolated up do current days.

The implementation choosen here is the fast version of original reference implementation code by its creators.

The complete algorhithm description can be found here.

One small caveat of snow2 algorythm is the need of a key of exactly 128 OR 256 bits (16 OR 32 bytes) length.

 

The usage is quite simple :

 

#include <StreamCypher/StreamCypher.h>

 

String EncodeWithSnow2(String key, String data)

{

    Snow2 snow2(key);

    return snow2.Encode(data);

}

 

There are also encoding functions for in-place buffer encoding and for out-of-place buffer encoding; you can also give the key as a buffer/length couple.

See the source code (Snow2.h) for details.

 

Do you want to contribute?