تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[سؤال] جل إحترامي للجميع تشفير خوارزمية RSA
#1
السلام عليكم .

طابت أوقاتكم بكل خير .
كل التحايا لهذا الصرح الشامخ .

أحتاج مساعدتكم جدا بعد الله في أمر أرقني .

لدي أنا كود بالفيجول بيسكك ولكني لاأعلم أن يضع وكيف يتم إستدعائه في الفورم .
هو برنامج تشفير خوارزمية RSA .



الفيجول بيسك لغة لم أتعلمها من قبل وطولبت بالعمل بها الآن .


فضلا لاأمرا أحتاج تواصل أحدكم معي ليرشدني .
في أمس الحاجة لذالك .


جزيتم خيرا .
الرد }}}
تم الشكر بواسطة:
#2
ستجد في الرابط التالي الطريقة التي تنشأ بها تطبيق يستخدم التشفير
How to encrypt and decrypt a file by using Visual Basic .NET

RolleyesRolleyesRolleyes
{‏‏ يَرْفَعِ اللَّهُ الَّذِينَ آمَنُوا مِنكُمْ وَالَّذِينَ أُوتُوا الْعِلْمَ دَرَجَاتٍ‏ }

 " Mohamed M. Bedair     -     " Abu Anas
Genius Live , Egypt
الرد }}}
تم الشكر بواسطة: vbnet
#3
جزيت خيرا , هذا الموقع يشرح عمل برنامج التشفير باسخدام خوارزمية DES >

وأنا عملي على RSA

كل الشكر لكك أخي الفاضل .
الرد }}}
تم الشكر بواسطة:
#4
RSA Encryption In VB.NET

كود :
Imports System.Security.Cryptography 'Import the cryptography namespaces
Imports System.Text

Public Class Form1

    'Declare global variables
    Dim textbytes, encryptedtextbytes As Byte()
    Dim rsa As New RSACryptoServiceProvider
    Dim encoder As New UTF8Encoding
    Dim encrypted, TextToDecrypt, TextToEncrypt, decrypted As String

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        TextToEncrypt = TextBox1.Text
        encrypt()
        TextBox2.Text = encrypted
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        TextToDecrypt = TextBox2.Text
        decrypt()
        TextBox3.Text = decrypted
    End Sub

    Sub encrypt()
        textbytes = encoder.GetBytes(TextToEncrypt)             'Use UTF8 to convert the text string into a byte array
        encryptedtextbytes = rsa.Encrypt(textbytes, True)       'encrypt the text
        encrypted = Convert.ToBase64String(encryptedtextbytes)  'Convert the encrypted byte array into a Base64 string for display purposes
    End Sub

    Sub decrypt()
        encryptedtextbytes = Convert.FromBase64String(TextToDecrypt)
        textbytes = rsa.Decrypt(encryptedtextbytes, True)   'get the decrypted clear text byte array
        decrypted = encoder.GetString(textbytes)            'convert the byte array to text using the same encoding format that was used for encryption
    End Sub

End Class
الرد }}}
تم الشكر بواسطة: Amir_Alzubidy



التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم