@@ -45,16 +45,16 @@ static void Main(string[] args)
4545 Console . WriteLine ( "** AES SecureRandom **" ) ;
4646 Console . WriteLine ( "Encrypted " + " (Length: " + encrypted . Length + ") " + encrypted ) ;
4747 Console . WriteLine ( "Decrypted " + " (Length: " + decrypted . Length + ") " + decrypted ) ;
48- // Console.WriteLine("Key: {0} IV: {1}", key, iv);
48+ Console . WriteLine ( "Key: {0} IV: {1}" , key , iv ) ;
4949
5050 Console . WriteLine ( ) ;
5151 Console . WriteLine ( "** AES SecureRandom with Byte input/output **" ) ;
52- // byte[] bencrypted = EncryptProvider.AESEncrypt(Encoding.UTF8.GetBytes(plaintext), key, iv);
53- // byte[] bdecrypted = EncryptProvider.AESDecrypt(bencrypted, key, iv);
52+ byte [ ] bencrypted = EncryptProvider . AESEncrypt ( Encoding . UTF8 . GetBytes ( plaintext ) , key , iv ) ;
53+ byte [ ] bdecrypted = EncryptProvider . AESDecrypt ( bencrypted , key , iv ) ;
5454
55- // Console.WriteLine("Encrypted " + " (Length: " + bencrypted.Length + ") " + Encoding.UTF8.GetString(bencrypted));
56- // Console.WriteLine("Decrypted " + " (Length: " + bdecrypted.Length + ") " + Encoding.UTF8.GetString(bdecrypted));
57- // Console.WriteLine("Key: {0} IV: {1}", key, iv);
55+ Console . WriteLine ( "Encrypted " + " (Length: " + bencrypted . Length + ") " + Encoding . UTF8 . GetString ( bencrypted ) ) ;
56+ Console . WriteLine ( "Decrypted " + " (Length: " + bdecrypted . Length + ") " + Encoding . UTF8 . GetString ( bdecrypted ) ) ;
57+ Console . WriteLine ( "Key: {0} IV: {1}" , key , iv ) ;
5858
5959 Console . WriteLine ( ) ;
6060
@@ -68,7 +68,7 @@ static void Main(string[] args)
6868 decrypted = EncryptProvider . AESDecrypt ( encrypted , key , iv ) ;
6969 Console . WriteLine ( "Encrypted " + " (Length: " + encrypted . Length + ") " + encrypted ) ;
7070 Console . WriteLine ( "Decrypted " + " (Length: " + decrypted . Length + ") " + decrypted ) ;
71- // Console.WriteLine("Key: {0} IV: {1}", key, iv);
71+ Console . WriteLine ( "Key: {0} IV: {1}" , key , iv ) ;
7272
7373 Console . WriteLine ( ) ;
7474 Console . WriteLine ( "** RSA **" ) ;
0 commit comments