请帮帮我(加密图片) [英] Please help me (encryption image)
问题描述
您好
我是新会员
我非常喜欢这个网站
我目前在毕业项目上工作和加密图像的网站c#
但我将图像转换为int然后位可以将其插入到算法中
有没有人帮我请
谢谢
我尝试了什么:
我试过但没有得到任何东西
Hello
I am a new member
I like the site very much
I am currently working on a graduation project and a site to encrypt images c#
But I have a problem converting the image into int and then bit to be able to insert it into the algorithm
Does anyone help me please
Thanks
What I have tried:
I tried but did not get anything
推荐答案
参见这里的文章: C#中的文件加密和解密 [ ^ ]
如果您的网站是托管的,这篇文章可能很有趣:使用RSA公钥密型在共享虚拟主机环境中 [ ^ ]
如果性能很重要,请阅读本文: C#中的Swanky加密/解密 [ ^ ]
祝你好运:)
See article here: File Encryption and Decryption in C#[^]
If your site is hosted, this article might be interesting: Using RSA Public Key Encryption in a Shared Web Hosting Environment[^]
If performance is important, then read this article: Swanky Encryption/Decryption in C#[^]
Good luck :)
如何将像素转换为二进制?
How to convert pixels to binary?
但是像素已经是二进制的,你的意思是什么? br />
存储到文件的图像就像任何文件一样,因此任何文件加密技术都适用于图像。
从加密的角度来看,任何文件都是一个字节的字符串,不再不要少。
我的建议:将图像保存到文件,然后加密rypt文件。两种操作的工具都是标准的。
But pixels are already binary, What you mean ?
An image stored to file is like any file, so any file encrypting technique works with images.
From encryption point of view, any file is a string of byte, no more no less.
My advice: Save the image to file, and then encrypt the file. tools for both operations are standard.
使用C#加密算法通常需要多个字节(一个字节或一个字节数组)作为Write的输入( )
功能。他们不关心输入所代表的数据类型。
所以你要做的就是将图像转换为字节数组,如 C#Image to Byte Array和Byte Array to Image Converter Class [ ^ ]或者当图像作为文件打开存储时,如解决方案1的第一个链接所示。
With C# encryption algorithms usually take a number of bytes (a single one or an array of bytes) as input for aWrite()
function. They don't care about the kind of data that is represented by the input.
So all you have to do is converting images to a byte array as described at C# Image to Byte Array and Byte Array to Image Converter Class[^] or when the image is stored as file open that for reading as shown in the first link of solution 1.
这篇关于请帮帮我(加密图片)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!