All Projects → xfgryujk → Weibo Img Crypto

xfgryujk / Weibo Img Crypto

Licence: mit
自动加密解密微博上传的图片

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Weibo Img Crypto

Openisp
Image Signal Processor
Stars: ✭ 158 (-10.23%)
Mutual labels:  image-processing
Essential Image Optimization
Essential Image Optimization - an eBook
Stars: ✭ 1,950 (+1007.95%)
Mutual labels:  image-processing
Filestack Js
Official Javascript SDK for the Filestack API and content ingestion system.
Stars: ✭ 169 (-3.98%)
Mutual labels:  image-processing
Gan Mri
Code repository for Frontiers article 'Generative Adversarial Networks for Image-to-Image Translation on Multi-Contrast MR Images - A Comparison of CycleGAN and UNIT'
Stars: ✭ 159 (-9.66%)
Mutual labels:  image-processing
Php Legofy
Transform your images as if they were made out of LEGO bricks.
Stars: ✭ 161 (-8.52%)
Mutual labels:  image-processing
Transformers
An Android transformation library providing a variety of image transformations for Coil, Glide, Picasso, and Fresco.
Stars: ✭ 167 (-5.11%)
Mutual labels:  image-processing
Gasyori100knock
image processing codes to understand algorithm
Stars: ✭ 1,988 (+1029.55%)
Mutual labels:  image-processing
Net Vips
.NET binding for libvips
Stars: ✭ 173 (-1.7%)
Mutual labels:  image-processing
Bimef
Code and data for the research paper "A Bio-Inspired Multi-Exposure Fusion Framework for Low-light Image Enhancement" (Submitted to IEEE Transactions on Cybernetics)
Stars: ✭ 161 (-8.52%)
Mutual labels:  image-processing
Pynet Pytorch
Generating RGB photos from RAW image files with PyNET (PyTorch)
Stars: ✭ 169 (-3.98%)
Mutual labels:  image-processing
Open Solution Data Science Bowl 2018
Open solution to the Data Science Bowl 2018
Stars: ✭ 159 (-9.66%)
Mutual labels:  image-processing
Pdftabextract
A set of tools for extracting tables from PDF files helping to do data mining on (OCR-processed) scanned documents.
Stars: ✭ 1,969 (+1018.75%)
Mutual labels:  image-processing
Image Compressor
[Deprecated] No longer maintained, please use https://github.com/fengyuanchen/compressorjs
Stars: ✭ 167 (-5.11%)
Mutual labels:  image-processing
Deblurgan
Image Deblurring using Generative Adversarial Networks
Stars: ✭ 2,033 (+1055.11%)
Mutual labels:  image-processing
Nuxt Imagemin
Nuxt module to minify your images. Works with: png, jpeg, gif, and svg
Stars: ✭ 170 (-3.41%)
Mutual labels:  image-processing
Smartcrop.js
Content aware image cropping
Stars: ✭ 12,345 (+6914.2%)
Mutual labels:  image-processing
Imager
R package for image processing
Stars: ✭ 166 (-5.68%)
Mutual labels:  image-processing
Invisibility cloak
This is a fun application of image processing which enables you to experience the magic of an invisibility cloak. Let's make our childhood fantasy of using an invisibility cloak come true.
Stars: ✭ 176 (+0%)
Mutual labels:  image-processing
Cctag
Detection of CCTag markers made up of concentric circles.
Stars: ✭ 172 (-2.27%)
Mutual labels:  image-processing
Nine grid view
Flutter NineGridView & DragSortView. Similar to Weibo / WeChat nine grid view controls to display pictures. Flutter仿微信/微博九宫格、拖拽排序,微信群组,钉钉群组,QQ讨论组头像。
Stars: ✭ 169 (-3.98%)
Mutual labels:  weibo

weibo-img-crypto

自动加密解密微博上传的图片

如何使用

方法 1,适合临时使用

在浏览器地址栏输入以下代码,上传图片时就会自动加密,在图片上点击鼠标右键就会自动解密。注意前面的 "javascript:" 必须手动输入,不能复制粘贴,否则会被浏览器自动去掉。执行成功后,点击左下角的北极熊 (天哥哥) 按钮可以打开设置界面

javascript:fetch('https://raw.githubusercontent.com/xfgryujk/weibo-img-crypto/master/weibo-img-crypto.js').then(res => res.text(), e => alert('载入失败:' + e)).then(res => {let script = document.createElement('script'); script.innerHTML = res; document.body.appendChild(script)})

也可以按 Ctrl + Shift + J 打开控制台,在控制台输入。也可以将这些代码作为网址添加到书签/收藏夹,能更快使用

方法 2,适合长期使用

首先安装 Tampermonkey 浏览器扩展,然后去 Greasy Fork 添加 weibo-img-crypto 脚本。这样访问微博时会自动执行方法 1 的代码

算法说明

加密的原理是把像素块或 RGB 数据随机移动到一个新位置,所以加密解密时的随机种子必须一样。默认的随机种子是 114514,可以在设置界面修改随机种子

推荐使用块随机置乱算法,这样不会出现有损压缩再解密造成的高频噪声。RGB随机置乱算法会出现有损压缩再解密造成的高频噪声。至于反色算法只是作者平时用来看某些博主的色图用的,不算加密

兼容性

目前不支持 GIF 图,以后可能支持

只在 Chrome、Edge 浏览器测试过,不保证支持其他浏览器 (IE 是什么?我可不知道)

效果

加密后:

加密后

解密后:

解密后

原图:

原图

FA♂Q

为什么不支持手机端?

目前实在没有找到支持手机端的简单方法,如果有可以告诉我

为什么不自己租个服务器放图片?

你出钱我就租

为什么不用傅里叶变换?

因为图片的灰度范围只有 256 个数,而傅里叶变换后的值域非常大,无法表示,更不用说 JPEG 压缩后的损失了

为什么不用异或?

初版用的就是异或的方法,但是经过 JPEG 压缩后再解密出现了严重的噪点,而且异或后的图片还是能看出轮廓,无法防止被二五仔举报

为什么不用 AES、RSA 等加密?

同上,我觉得保留原始像素数据能尽量减少数据损失,而且加密是怎么乱怎么来,最好不要留原图的轮廓以免被二五仔举报

默认随机种子 114514 是什么意思?

作者的恶趣味,自行百度

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].