@@ -19,49 +19,49 @@ describe('crypto', () => {
1919
2020 test
2121 . stdout ( )
22- . command ( [ 'crypto' , '-d' , 'aes' , '-s' , 'U2FsdGVkX1/OLQ6Lp+V3O1d5SaxEf9pAf8CV7ErBC9o=' , '-k' , 'Secret Passphrase' ] )
22+ . command ( [ 'crypto' , '-d' , 'aes' , '-s' , 'U2FsdGVkX1/OLQ6Lp+V3O1d5SaxEf9pAf8CV7ErBC9o=' , '-k' , 'Secret Passphrase' ] )
2323 . it ( 'AES Decryption string passed as flag' , ctx => {
2424 expect ( ctx . stdout ) . to . contain ( 'Message' )
2525 } )
2626
2727 test
2828 . stdout ( )
29- . command ( [ 'crypto' , '-d' , 'des' , '-s' , 'U2FsdGVkX180d+J1kUcxGL9bbBAErXAw' , '-k' , 'Secret Passphrase' ] )
29+ . command ( [ 'crypto' , '-d' , 'des' , '-s' , 'U2FsdGVkX180d+J1kUcxGL9bbBAErXAw' , '-k' , 'Secret Passphrase' ] )
3030 . it ( 'DES Decryption' , ctx => {
3131 expect ( ctx . stdout ) . to . contain ( 'Message' )
3232 } )
3333
3434 test
3535 . stdout ( )
36- . command ( [ 'crypto' , '-d' , 'des' , '-s' , 'U2FsdGVkX186YglxZ7yF7aqTjFQA3Yzs' , '-k' , 'Secret Passphrase' , '-m' , 'ECB' ] )
36+ . command ( [ 'crypto' , '-d' , 'des' , '-s' , 'U2FsdGVkX186YglxZ7yF7aqTjFQA3Yzs' , '-k' , 'Secret Passphrase' , '-m' , 'ECB' ] )
3737 . it ( 'DES Decryption with Mode ECB' , ctx => {
3838 expect ( ctx . stdout ) . to . contain ( 'Message' )
3939 } )
4040
4141 test
4242 . stdout ( )
43- . command ( [ 'crypto' , '-d' , '3des' , '-s' , 'U2FsdGVkX1+2jkjCxuWwL8uMgdu6SXJc' , '-k' , 'Secret Passphrase' ] )
43+ . command ( [ 'crypto' , '-d' , '3des' , '-s' , 'U2FsdGVkX1+2jkjCxuWwL8uMgdu6SXJc' , '-k' , 'Secret Passphrase' ] )
4444 . it ( '3DES Decryption' , ctx => {
4545 expect ( ctx . stdout ) . to . contain ( 'Message' )
4646 } )
4747
4848 test
4949 . stdout ( )
50- . command ( [ 'crypto' , '-d' , 'RABBIT' , '-s' , 'U2FsdGVkX185oOsUqvpF+7x0zPUxNJw=' , '-k' , 'Secret Passphrase' ] )
50+ . command ( [ 'crypto' , '-d' , 'RABBIT' , '-s' , 'U2FsdGVkX185oOsUqvpF+7x0zPUxNJw=' , '-k' , 'Secret Passphrase' ] )
5151 . it ( 'RABBIT Decryption' , ctx => {
5252 expect ( ctx . stdout ) . to . contain ( 'Message' )
5353 } )
5454
5555 test
5656 . stdout ( )
57- . command ( [ 'crypto' , '-d' , 'RC4' , '-s' , 'U2FsdGVkX1+/oErpaqQQk1Fj2eXwL1o=' , '-k' , 'Secret Passphrase' ] )
57+ . command ( [ 'crypto' , '-d' , 'RC4' , '-s' , 'U2FsdGVkX1+/oErpaqQQk1Fj2eXwL1o=' , '-k' , 'Secret Passphrase' ] )
5858 . it ( 'RC4 Decryption' , ctx => {
5959 expect ( ctx . stdout ) . to . contain ( 'Message' )
6060 } )
6161
6262 test
6363 . stdout ( )
64- . command ( [ 'crypto' , '-d' , 'RC4DROP' , '-s' , 'U2FsdGVkX18+D1WNQ64XzaCwkUM6moE=' , '-k' , 'Secret Passphrase' ] )
64+ . command ( [ 'crypto' , '-d' , 'RC4DROP' , '-s' , 'U2FsdGVkX18+D1WNQ64XzaCwkUM6moE=' , '-k' , 'Secret Passphrase' ] )
6565 . it ( 'RC4Drop Decryption' , ctx => {
6666 expect ( ctx . stdout ) . to . contain ( 'Message' )
6767 } )
@@ -92,7 +92,7 @@ describe('crypto', () => {
9292
9393 test
9494 . stdout ( )
95- . command ( [ 'crypto' , '-e' , 'aes' , '-d' , 'aes' , '-s' , 'Message' , '-k' , 'Secret Passphrase' ] )
95+ . command ( [ 'crypto' , '-e' , 'aes' , '-d' , 'aes' , '-s' , 'Message' , '-k' , 'Secret Passphrase' ] )
9696 . exit ( 0 )
9797 . it ( 'Both encryption and decryption methods passed' , ctx => {
9898 expect ( ctx . stdout ) . to . contain ( 'Both encryption and decryption methods passed' )
0 commit comments