VB.NET類加密 vbnet加密字符串

VB.NET開發(fā)的軟件,大家一般都是怎么加密的

網(wǎng)上有很多專業(yè)的加密教程

10年積累的成都做網(wǎng)站、成都網(wǎng)站設(shè)計(jì)經(jīng)驗(yàn),可以快速應(yīng)對(duì)客戶對(duì)網(wǎng)站的新想法和需求。提供各種問題對(duì)應(yīng)的解決方案。讓選擇我們的客戶得到更好、更有力的網(wǎng)絡(luò)服務(wù)。我雖然不認(rèn)識(shí)你,你也不認(rèn)識(shí)我。但先網(wǎng)站設(shè)計(jì)后付款的網(wǎng)站建設(shè)流程,更有施秉免費(fèi)網(wǎng)站建設(shè)讓你可以放心的選擇與我們合作。

最適合小開發(fā)者的軟件加密方式就是下面這個(gè)

獲取硬件信息和個(gè)人注冊時(shí)的姓名手機(jī)號(hào)等一系列信息,通過預(yù)先設(shè)定好的加密函數(shù)進(jìn)行散列加密,生成一個(gè)只有本人本機(jī)能使用的序列號(hào),軟件正版授權(quán)的時(shí)候用同樣的方式生成序列號(hào)進(jìn)行比對(duì),一樣則通過

用VB.net編寫一個(gè)加密解密軟件

"采用DES算法"這個(gè)說法不明確,首先是使用多少位的DES進(jìn)行加密,通常是128位或192位,其次是,要先把主密鑰轉(zhuǎn)化成散列,才能供DES進(jìn)行加密,轉(zhuǎn)化的方法是什么沒有明確,通常是md5,所以有的銀行卡說是128位md5 3DS就是指用md5轉(zhuǎn)換主密鑰散列,用DES進(jìn)行加密,但是DES本身是64位(包含校驗(yàn)碼),2DES是128位,3DES是192位,但是沒有2DES的叫法,所以128位、192位統(tǒng)稱3DES

要完整的md5+3DS實(shí)例,需要100分以上,要不到我的空間中查找相關(guān)的文章

vb.net中實(shí)現(xiàn)rsa加密解密 急!急!

我覺得你的并不是RSA加密解密算法。

在.net的有一個(gè)System.Security.Cryptography的命名空間,里面有一RSACryptoServiceProvider的類用來對(duì)byte進(jìn)行RSA加密解密。

具體例子如下:

using System;

using System.Security.Cryptography;

using System.Text;

class RSACSPSample

{

static void Main()

{

try

{

//Create a UnicodeEncoder to convert between byte array and string.

UnicodeEncoding ByteConverter = new UnicodeEncoding();

//Create byte arrays to hold original, encrypted, and decrypted data.

byte[] dataToEncrypt = ByteConverter.GetBytes("Data to Encrypt");

byte[] encryptedData;

byte[] decryptedData;

//Create a new instance of RSACryptoServiceProvider to generate

//public and private key data.

RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();

//Pass the data to ENCRYPT, the public key information

//(using RSACryptoServiceProvider.ExportParameters(false),

//and a boolean flag specifying no OAEP padding.

encryptedData = RSAEncrypt(dataToEncrypt,RSA.ExportParameters(false), false);

//Pass the data to DECRYPT, the private key information

//(using RSACryptoServiceProvider.ExportParameters(true),

//and a boolean flag specifying no OAEP padding.

decryptedData = RSADecrypt(encryptedData,RSA.ExportParameters(true), false);

//Display the decrypted plaintext to the console.

Console.WriteLine("Decrypted plaintext: {0}", ByteConverter.GetString(decryptedData));

}

catch(ArgumentNullException)

{

//Catch this exception in case the encryption did

//not succeed.

Console.WriteLine("Encryption failed.");

}

}

static public byte[] RSAEncrypt(byte[] DataToEncrypt, RSAParameters RSAKeyInfo, bool DoOAEPPadding)

{

try

{

//Create a new instance of RSACryptoServiceProvider.

RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();

//Import the RSA Key information. This only needs

//toinclude the public key information.

RSA.ImportParameters(RSAKeyInfo);

//Encrypt the passed byte array and specify OAEP padding.

//OAEP padding is only available on Microsoft Windows XP or

//later.

return RSA.Encrypt(DataToEncrypt, DoOAEPPadding);

}

//Catch and display a CryptographicException

//to the console.

catch(CryptographicException e)

{

Console.WriteLine(e.Message);

return null;

}

}

static public byte[] RSADecrypt(byte[] DataToDecrypt, RSAParameters RSAKeyInfo,bool DoOAEPPadding)

{

try

{

//Create a new instance of RSACryptoServiceProvider.

RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();

//Import the RSA Key information. This needs

//to include the private key information.

RSA.ImportParameters(RSAKeyInfo);

//Decrypt the passed byte array and specify OAEP padding.

//OAEP padding is only available on Microsoft Windows XP or

//later.

return RSA.Decrypt(DataToDecrypt, DoOAEPPadding);

}

//Catch and display a CryptographicException

//to the console.

catch(CryptographicException e)

{

Console.WriteLine(e.ToString());

return null;

}

}

}

[Visual Basic]

Try

'Create a new RSACryptoServiceProvider object.

Dim RSA As New RSACryptoServiceProvider()

'Export the key information to an RSAParameters object.

'Pass false to export the public key information or pass

'true to export public and private key information.

Dim RSAParams As RSAParameters = RSA.ExportParameters(False)

Catch e As CryptographicException

'Catch this exception in case the encryption did

'not succeed.

Console.WriteLine(e.Message)

End Try

[C#]

try

{

//Create a new RSACryptoServiceProvider object.

RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();

//Export the key information to an RSAParameters object.

//Pass false to export the public key information or pass

//true to export public and private key information.

RSAParameters RSAParams = RSA.ExportParameters(false);

}

catch(CryptographicException e)

{

//Catch this exception in case the encryption did

//not succeed.

Console.WriteLine(e.Message);

}

VB.NET做的一個(gè)行業(yè)小軟件,請問如何加密,比如需要通過什么硬件的序列號(hào)注冊;

最好的加密就是通過你的網(wǎng)站去加密!用網(wǎng)絡(luò)服務(wù)器驗(yàn)證把一些主要程序都可以加載到服務(wù)器上!這樣你的程序加密就完美了! (個(gè)人觀點(diǎn)純屬不懂裝懂的。哈哈見笑)

VB.NET程序加密問題

在FormLoad事件里,寫如下代碼:

If MsgBox("是否打開程序?", MsgBoxStyle.OkCancel) = MsgBoxResult.Cancel Then

End

End If

大概方法是這樣,要想加密碼的話,將MsgBox()換成你自己寫的對(duì)話框。

如果還嫌不夠具體的話,你這點(diǎn)兒分就不夠。。。

當(dāng)前標(biāo)題:VB.NET類加密 vbnet加密字符串
URL地址:http://m.kartarina.com/article32/dodecsc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供全網(wǎng)營銷推廣動(dòng)態(tài)網(wǎng)站外貿(mào)建站網(wǎng)站排名面包屑導(dǎo)航

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)
主站蜘蛛池模板: 亚洲精品无码专区| 无码AV波多野结衣久久| 亚洲av永久无码精品古装片| 中文字幕av无码不卡| 最新亚洲人成无码网www电影| 免费无码AV一区二区| 国产AV无码专区亚洲AV男同 | 久久无码人妻一区二区三区午夜| 亚洲AV无码资源在线观看| 亚洲AV无码一区二三区 | 无码精品一区二区三区免费视频 | 精品深夜AV无码一区二区| 九九无码人妻一区二区三区| 国产在线拍偷自揄拍无码| 人妻少妇看A偷人无码精品视频| 伊人久久精品无码av一区| 亚洲AV成人无码久久WWW| 亚洲av中文无码乱人伦在线r▽| 国产午夜无码片在线观看| 精品视频无码一区二区三区| 亚洲国产精品无码专区在线观看| 国产99久久九九精品无码| 亚洲av无码专区在线观看亚| 色窝窝无码一区二区三区色欲| 本道天堂成在人线av无码免费| 夫妻免费无码V看片| 亚洲精品av无码喷奶水糖心| 久久精品九九热无码免贵| 国产无码一区二区在线| 人妻无码一区二区三区| 精品无码久久久久久国产| 亚洲av永久中文无码精品综合 | 亚洲av无码日韩av无码网站冲| 日韩人妻无码精品一专区| 国产成人无码精品久久久性色| 一本之道高清无码视频| 国产成人无码av在线播放不卡| 国产午夜av无码无片久久96| 成人毛片无码一区二区| 精品久久久久久无码中文野结衣| 无码人妻精品一区二区蜜桃网站 |