in reply to AES/ECB/PKCS#5 encryption
wrong key length: key must be 128, 192 or 256 bits long at ./928418.pl line 8
Second, you didn't use warnings; and use strict; so $ndid is undefined# keys must be 128, 192 or 256 "bits" long, # 8 bits in a letter, so 8 x 16 = 128 #my $key = 'abcdefgghjkloiuy'; #128 bits or 8 x 16 my $key = 'abcdefgghjkloiuyabcdefgghjkloiuy'; #256 bits or 8 x 32 print "key->$key\n";
What do you want us to do with broken and incomplete code?
|
|---|