From: couturie Date: Sat, 14 Apr 2018 17:02:42 +0000 (+0200) Subject: cipher_webp X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/commitdiff_plain/19670cd4e2f20c066355adfe1de7afcde4b8fcce?ds=sidebyside;hp=-c cipher_webp --- 19670cd4e2f20c066355adfe1de7afcde4b8fcce diff --git a/CipherImg/cipher_webp.cpp b/CipherImg/cipher_webp.cpp new file mode 100644 index 0000000..8176d8f --- /dev/null +++ b/CipherImg/cipher_webp.cpp @@ -0,0 +1,121 @@ +//g++ cipher_webp.cpp -o cipher_webp -O3 + +//usage image.webp seed +//cipher_webp im1.webp 3213 + + +#include +#include +#include +#include + + +using namespace std; + +typedef unsigned char uchar; + +uchar modulo(int x,int N){ return (x % N + N) %N; } + +void fxor(uchar *buf,int sz, int seed,int enc) { + int start,end; + /* + for(int i=1;i=end) + cout<<"pb"<=end) + cout<<"pb2"<