File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed
src/KeeperData.Crypto.Tool Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change 3434 var cryptoTransform = host . Services . GetRequiredService < IAesCryptoTransform > ( ) ;
3535
3636 Console . WriteLine ( $ "Encrypting '{ inputFile } ' to '{ outputFile } '...") ;
37-
37+
3838 try
3939 {
4040 await cryptoTransform . EncryptFileAsync (
41- inputFile ,
42- outputFile ,
43- password ,
41+ inputFile ,
42+ outputFile ,
43+ password ,
4444 salt ,
45- ( progress , status ) =>
45+ ( progress , status ) =>
4646 {
4747 Console . Write ( $ "\r Progress: { progress } % - { status } ") ;
4848 } ) ;
49-
49+
5050 Console . WriteLine ( "\n Encryption completed successfully!" ) ;
5151 }
5252 catch ( Exception ex )
@@ -74,19 +74,19 @@ await cryptoTransform.EncryptFileAsync(
7474 var cryptoTransform = host . Services . GetRequiredService < IAesCryptoTransform > ( ) ;
7575
7676 Console . WriteLine ( $ "Decrypting '{ inputFile } ' to '{ outputFile } '...") ;
77-
77+
7878 try
7979 {
8080 await cryptoTransform . DecryptFileAsync (
81- inputFile ,
82- outputFile ,
83- password ,
81+ inputFile ,
82+ outputFile ,
83+ password ,
8484 salt ,
85- ( progress , status ) =>
85+ ( progress , status ) =>
8686 {
8787 Console . Write ( $ "\r Progress: { progress } % - { status } ") ;
8888 } ) ;
89-
89+
9090 Console . WriteLine ( "\n Decryption completed successfully!" ) ;
9191 }
9292 catch ( Exception ex )
@@ -143,5 +143,4 @@ await cryptoTransform.DecryptFileAsync(
143143rootCommand . Add ( generateFilenameCommand ) ;
144144
145145var parseResult = rootCommand . Parse ( args ) ;
146- return await parseResult . InvokeAsync ( ) ;
147-
146+ return await parseResult . InvokeAsync ( ) ;
You can’t perform that action at this time.
0 commit comments