Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/01/2014, 15:39
REHome
 
Fecha de Ingreso: mayo-2007
Ubicación: PIC-16F84A
Mensajes: 727
Antigüedad: 17 años
Puntos: 8
Pasar esta fórmula matemática

Buenas:

De esta fórmula que no entiendo, quiero pasarlo a Visual C# 2013 express.

Código:
    int num = Convert.ToInt32(seedNumber.Substring(0, 6), 0x10);
    int num2 = num + 0x10f0a563;
    int num3 = Convert.ToInt32(seedNumber.Substring(10, 2), 0x10) & 7;
    int num4 = (num2 >> num3) | (num2 << (0x20 - num3));
    num4 ^=  num;
    return num4.ToString("X");
En el Form1 tiene añade estos componentes, 2 textBox y un Buttons, más 2 label.

Los componentes lo he llamado así:

textBox_seedNumber para introducir unos códigos hexadecimales.
textBox_Password que te devuelve otro código al pulsar el botón.

¿Cómo se hace?

Un saludo.
__________________
Meta Shell, VERSIÓN 1.2.2
Descargar