C#中使用Rubik立方算法的图像加密和解密 [英] Image Encryption and Decryption using Rubik's cube Algorithm in C#

查看:160
本文介绍了C#中使用Rubik立方算法的图像加密和解密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以加密和解密图像在c#中使用Rubik的立方体原理。我无法理解这个概念。请任何人给我一些关于这个概念的想法。我可以在图像加密和解密中使用这个rubik的立方体算法。



提前感谢

It is Possible Encrypt and Decrypt a image Using Rubik's Cube Principle in c#.I can't understand the concept .please anybody give me some idea about this concept.how can i use this rubik's cube algorithm in Image encryption and decryption.

thanks in advance

推荐答案

基本上是:



1.首先通过一些步骤旋转每一行和每列来置换像素

2.使用XOR加密每个像素(可能此步骤是为了混淆步骤1中的排列)

3.重复几次



算法使用种子数(列数+行数+ 1)数字为每个行和列定义单独的旋转,以及为每个像素定义单独的XOR值。



此算法的Rubiks Cube部分不会在概念上引入任何新的内容(定义一个排列),但它提供了一个非平凡的方案可以使用相对较少数量的键值来定义。



我想补充一点,虽然这个算法应该仅应用于图像,但没有任何停止您可以将任何类型的数据解释为图像或图像序列:e。 G。您可以将一个大文件拆分成64KB块,然后将每个块解释为256x256灰度图像,每个像素有256个灰度(每个像素存储一个字节)。
Basically it's:

1. Permute your pixels by first rotating each row and column by some steps
2. Encrypt each pixel using XOR (probably this step is meant to obfuscate the permutation from step 1)
3. Repeat a couple of times

The algorithm uses a "seed" of (number of columns + number of rows + 1) numbers to define individual rotations for each row and column, and individual XOR values for each pixel.

The "Rubiks Cube" part of this algorithm doesn't introduce anything conceptionally new (defining a permutation), but it helps by providing a non-trivial scheme that can be defined with a relatively low number of key values.

I'd like to add, that while this algorithm is supposed to be applied on images only, nothing stops you from interpreting any kind of data as an image, or sequence of images: e. g. you could split up a big file into 64KB blocks, and then interpret each block as a 256x256 greyscale image with 256 grey scales per 'pixel' (stored as one byte each).


我找到了一篇关于此的文章。

基于Rubik多维数据集原理的安全图像加密算法 [ ^ ]。
I found one Article on this.
A Secure Image Encryption Algorithm Based on Rubik's Cube Principle[^].


这篇关于C#中使用Rubik立方算法的图像加密和解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆