Giter Site home page Giter Site logo

drasticsolutions / powershell_managedcredential Goto Github PK

View Code? Open in Web Editor NEW

This project forked from borntoberoot/powershell_managedcredential

0.0 0.0 0.0 675 KB

Secure encryption and decryption of credentials in PowerShell with SecureString

License: GNU General Public License v3.0

PowerShell 100.00%

powershell_managedcredential's Introduction

Repo archived because secure string shouldn't be used anymore :)

See https://github.com/dotnet/platform-compat/blob/master/docs/DE0001.md

PowerShell - ManagedCredential

Secure encrpytion and decryption of credentials in PowerShell.

Description

Module and script for secure encrpytion and decryption of credentials in PowerShell. Encrypted credentials can be stored in an xml-file or variable and be decrypted from there.

This function uses the SecureString Class from the .NET-Framework. Once encrypted credentials, can only be decrypted by the same user and on the same computer.

SecureString

If user "A" encrypt the credentials on computer "A", user "B" cannot decrypt the credentials on computer "A" and also user "A" cannot decrypt the credentials on Computer "B".

Module

How to install the module?

  1. Download the latest Release
  2. Copy the folder Module\ManagedCredential to C:\Users\%username%\Documents\WindowsPowerShell\Modules\
  3. Open up a PowerShell as an admin and set the execution policy: Set-ExecutionPolicy RemoteSigned
  4. Import the Module with the command Import-Module ManagedCredential (Maybe add this command to your PowerShell profile)

Available functions:

Function Description Help
New-ManagedCredential Secure encryption of credentials as SecureString ๐Ÿ“–
Get-ManagedCredential Secure decryption of encrypted credentials ๐Ÿ“–

Scripts

Function Description Help
New-ManagedCredential.ps1 Secure encryption of credentials as SecureString ๐Ÿ“–
Get-ManagedCredential.ps1 Secure decryption of encrypted credentials ๐Ÿ“–

Encrypted xml-file

Screenshot

powershell_managedcredential's People

Contributors

borntoberoot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.