EncryptCredential
0.1.0
Apteco PS Modules - PowerShell security encryption module
Execute commands like
"Hello World" | Convert-PlaintextToSecure
to get a string like
76492d1116743f0423413b16050a5345MgB8AEEAYQBmAEEAOABPAEEAYQBmAEYAKwBuAGQAegBxACsASQBRAGIAaQA0AEEAPQA9AHwANAAxAGEAYQBhADAAYwA3ADQAYwBiADkAYwAzADEAZgBkAGUAZQBkADQAOABhADIAMgA5AGUAMAAyADkANwBiADcAMQAyADgAOAAzADkAMwBiADA
Execute commands like
"Hello World" | Convert-PlaintextToSecure
to get a string like
76492d1116743f0423413b16050a5345MgB8AEEAYQBmAEEAOABPAEEAYQBmAEYAKwBuAGQAegBxACsASQBRAGIAaQA0AEEAPQA9AHwANAAxAGEAYQBhADAAYwA3ADQAYwBiADkAYwAzADEAZgBkAGUAZQBkADQAOABhADIAMgA5AGUAMAAyADkANwBiADcAMQAyADgAOAAzADkAMwBiADA
Apteco PS Modules - PowerShell security encryption module
Execute commands like
"Hello World" | Convert-PlaintextToSecure
to get a string like
76492d1116743f0423413b16050a5345MgB8AEEAYQBmAEEAOABPAEEAYQBmAEYAKwBuAGQAegBxACsASQBRAGIAaQA0AEEAPQA9AHwANAAxAGEAYQBhADAAYwA3ADQAYwBiADkAYwAzADEAZgBkAGUAZQBkADQAOABhADIAMgA5AGUAMAAyADkANwBiADcAMQAyADgAOAAzADkAMwBiADAANAA0ADcAMwA3ADQANgAxADMAYwBmADQAZQAyADIAMwBkAGQAMQBhADUAMAA=
This string can be decrypted by calling
"76492d1116743f0423413b16050a5345MgB8AEEAYQBmAEEAOABPAEEAYQBmAEYAKwBuAGQAegBxACsASQBRAGIAaQA0AEEAPQA9AHwANAAxAGEAYQBhADAAYwA3ADQAYwBiADkAYwAzADEAZgBkAGUAZQBkADQAOABhADIAMgA5AGUAMAAyADkANwBiADcAMQAyADgAOAAzADkAMwBiADAANAA0ADcAMwA3ADQANgAxADMAYwBmADQAZQAyADIAMwBkAGQAMQBhADUAMAA=" | Convert-SecureToPlaintext
and get back
Hello World
You better save the strings into variables ;-)
This module is used to double encrypt sensitive data like credentials, tokens etc. They cannot be stolen pretty easily as it uses SecureStrings.
At the first encryption or when calling Export-Keyfile a new random keyfile will be generated for salting with AES.
The key ist saved per default in your users profile, but can be exported into any other folder and use it from there.
Be aware that the encrypted strings are only valid for the executing machine as it uses SecureStrings that cannot be
copied over to other machines.
You can use `Import-Keyfile` to use a keyfile that has been exported before.
Show more
Execute commands like
"Hello World" | Convert-PlaintextToSecure
to get a string like
76492d1116743f0423413b16050a5345MgB8AEEAYQBmAEEAOABPAEEAYQBmAEYAKwBuAGQAegBxACsASQBRAGIAaQA0AEEAPQA9AHwANAAxAGEAYQBhADAAYwA3ADQAYwBiADkAYwAzADEAZgBkAGUAZQBkADQAOABhADIAMgA5AGUAMAAyADkANwBiADcAMQAyADgAOAAzADkAMwBiADAANAA0ADcAMwA3ADQANgAxADMAYwBmADQAZQAyADIAMwBkAGQAMQBhADUAMAA=
This string can be decrypted by calling
"76492d1116743f0423413b16050a5345MgB8AEEAYQBmAEEAOABPAEEAYQBmAEYAKwBuAGQAegBxACsASQBRAGIAaQA0AEEAPQA9AHwANAAxAGEAYQBhADAAYwA3ADQAYwBiADkAYwAzADEAZgBkAGUAZQBkADQAOABhADIAMgA5AGUAMAAyADkANwBiADcAMQAyADgAOAAzADkAMwBiADAANAA0ADcAMwA3ADQANgAxADMAYwBmADQAZQAyADIAMwBkAGQAMQBhADUAMAA=" | Convert-SecureToPlaintext
and get back
Hello World
You better save the strings into variables ;-)
This module is used to double encrypt sensitive data like credentials, tokens etc. They cannot be stolen pretty easily as it uses SecureStrings.
At the first encryption or when calling Export-Keyfile a new random keyfile will be generated for salting with AES.
The key ist saved per default in your users profile, but can be exported into any other folder and use it from there.
Be aware that the encrypted strings are only valid for the executing machine as it uses SecureStrings that cannot be
copied over to other machines.
You can use `Import-Keyfile` to use a keyfile that has been exported before.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2023 Apteco GmbH. All rights reserved.
Package Details
Author(s)
- florian.von.bracht@apteco.de
Tags
Functions
Convert-PlaintextToSecure Convert-SecureToPlaintext Export-Keyfile Import-Keyfile
PSEditions
Dependencies
This module has no dependencies.
Release Notes
0.1.0 Making this module more mature with only explicit functions to export
Removing not needed verbose output, use -verbose to see it again
Fixed the path joining
0.0.2 Fixed a bug regarding output if a keyfile does not exist
0.0.1 Initial release through PSGallery
FileList
- EncryptCredential.nuspec
- Public\Export-Keyfile.ps1
- Public\Import-Keyfile.ps1
- EncryptCredential.psm1
- Private\ConvertTo-CryptedOrbitPassword.ps1
- Private\Create-Keyfile.ps1
- Public\Convert-PlaintextToSecure.ps1
- Public\Convert-SecureToPlaintext.ps1
- EncryptCredential.psd1
Version History
Version | Downloads | Last updated |
---|---|---|
0.1.1 | 34 | 6/24/2024 |
0.1.0 (current version) | 98 | 10/5/2023 |
0.0.2 | 65 | 11/28/2022 |
0.0.1 | 21 | 10/31/2022 |