From 19670cd4e2f20c066355adfe1de7afcde4b8fcce Mon Sep 17 00:00:00 2001 From: couturie Date: Sat, 14 Apr 2018 19:02:42 +0200 Subject: [PATCH 1/1] cipher_webp --- CipherImg/cipher_webp.cpp | 121 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 CipherImg/cipher_webp.cpp 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"<