mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-12 14:07:20 +02:00
Updated the manuals
This commit is contained in:
@ -6,7 +6,7 @@ This PowerShell script encrypts a file using the given password and AES encrypti
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./encrypt-file.ps1 [[-Path] <String>] [[-Password] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/scripts/encrypt-file.ps1 [[-Path] <String>] [[-Password] <String>] [<CommonParameters>]
|
||||
|
||||
-Path <String>
|
||||
Specifies the path to the file to encrypt
|
||||
@ -174,7 +174,7 @@ try {
|
||||
EncryptFile "$Path" -Algorithm AES -KeyAsPlainText $PasswordAsBase64 -RemoveSource
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ file encrypted in $Elapsed sec"
|
||||
"✅ file encrypted in $Elapsed sec"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -182,4 +182,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of encrypt-file.ps1 as of 08/15/2024 09:50:47)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of encrypt-file.ps1 as of 11/08/2024 12:34:49)*
|
||||
|
Reference in New Issue
Block a user