2016-04-03 2 views
-1

Je veux mettre en œuvre l'algorithme blowfish pour mon travail, j'utilise le code source blowfish C# de defuse, alors je veux analyser le code source, puis quand je veux savoir la sortie dans certaines fonctions j'ai reçu un message comme ça System.UInt32[] je veux afficher pour consoler.Comment afficher UInt32 [] dans la console dans C#?

Cela fait partie que je veux connaître la sortie.

int j = 0; 
     for (int i = 0; i < 18; i++) 
     { 
      uint d = (uint)(((key[j % cipherKey.Length] * 256 + key[(j + 1) % cipherKey.Length]) * 256 + key[(j + 2) % cipherKey.Length]) * 256 + key[(j + 3) % cipherKey.Length]); 
      bf_P[i] ^= d; 
      j = (j + 4) % cipherKey.Length; 
     } 
     string p = Convert.ToString(bf_P); 
     Console.WriteLine(p); 
     Console.ReadLine(); 

Quelqu'un peut-il m'aider?

+0

https://www.bing.com/search?q=c%23+print+array vous montre l'exemple directement ... –

Répondre

0
string p = string.Join("\r\n", bf_P); 
+0

merci ça marche pour moi? –