عرض مشاركة واحدة
قديم 14/06/2010, 11:17   المشاركة رقم: 1
المعلومات
الكاتب:
  AnGeL25dZ  
اللقب:
الصورة الرمزية
 
الصورة الرمزية AnGeL25dZ

البيانات
التسجيل : May 2010
العضوية : 149
الاهتمامات : Sonork:1593455
الإقامة : ..::DZ-25::..
المواضيع : 28
الردود : 83
المجموع : 111
بمعدل : 0.02 يوميا
الاختراقات : [AnGeL25dZ]
مجتمعنا : []
الصنف : Not Hacker
آخر تواجد : 28/08/2015/14:46
سبب الغياب : inside gsm programming
معدل التقييم: 17
نقاط التقييم: 10
AnGeL25dZ is on a distinguished road
شكراً: 13
تم شكره 53 مرة في 15 مشاركة

 Algeria


الإتصالات
الحالة:
AnGeL25dZ غير متواجد حالياً
وسائل الإتصال:

افتراضي التشفير بالهكس HEX بلغة سي شارب #c

التشفير Encode

كود بلغة HTML:
public string EncodeHex(string stre)
        {
            cres = "";
            foreach (char t in stre)
            {
                Int32 t1 = Convert.ToInt32(t);
                string hexValue = t1.ToString("X");
                cres = cres + hexValue;

            }
                
                return cres;
        }
فك التشفير Decode:

كود بلغة HTML:
  public string DecodeHex(string strd)
        {
            cres = "";
            string txt;
            try
            {
                for (int i = 0; i < strd.Length; i += 2)
                {
                    txt = (strd.Substring(i, 2));
                    int num = int.Parse(txt, System.Globalization.NumberStyles.HexNumber);
                    char txt1 = Convert.ToChar(num);
                    cres = cres + txt1;
                }

                
                return cres;
            }
            catch (System.Exception)
            {
                cres = "Error: txt is not in hex format";
                return cres;
            }
        }



آخر مواضيع » AnGeL25dZ

توقيع : AnGeL25dZ

Out of service

عرض البوم صور AnGeL25dZ   رد مع اقتباس
2 أعضاء قالوا شكراً لـ AnGeL25dZ على المشاركة المفيدة:
Power_Dz (22/07/2014), S4wDz (02/10/2011)
 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115