Steganography.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Drawing.Imaging;
using System.IO;
//www.51aspx.com
namespace Steganography
{
public partial class Steganography : Form
{
private Bitmap bmp = null;
private string extractedText = string.Empty;
public Steganography()
{
InitializeComponent();
}
private void hideButton_Click(object sender, EventArgs e)
{
bmp = (Bitmap)imagePictureBox.Image;
string text = dataTextBox.Text;
if (text.Equals(""))
{
MessageBox.Show("The text you want to hide can't be empty", "Warning");
return;
}
if (encryptCheckBox.Checked)
{
if (passwordTextBox.Text.Length < 6)
{
MessageBox.Show("Please enter a password with at least 6 characters", "Warning");
return;
}
else
{
text = Crypto.EncryptStringAES(text, passwordTextBox.Text);
}
}
bmp = SteganographyHelper.embedText(text, bmp);
MessageBox.Show("Your text was hidden in the image successfully!", "Done");
notesLabel.Text = "Notes: don't forget to save your new image.";
notesLabel.ForeColor = Color.OrangeRed;
}
private void extractButton_Click(object sender, EventArgs e)
{
bmp = (Bitmap)imagePictureBox.Image;
string extractedText = SteganographyHelper.extractText(bmp);
if (encryptCheckBox.Checked)
后面还有 79 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。