Skip to content

darkraiden/aws-kms-encrypter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-kms-encrypter

GitHub release CircleCI MIT License

AWS KMS Encrypter is a simple command line tool that can be used to Encrypt your passwords just providing a KMS ID, which of course implies the KMS resource is created beforehand.

Installation

To install aws-kms-encrypter, please use go get. We tag versions so feel free to checkout that tag and compile.

$ go get github.com/darkraiden/aws-kms-encrypter

Usage

This tool will first create a random string, and then use KMS algorithms to encrypt them, returning to the user a Cipher Text Blob and the plain password.

$ aws-kms-encrypter -kms-id="ThisIsTheIDOfYourKMSKey" -context="KMSEncryptionContext=valueOfTheContext" -length=12 -special-chars=false -digits=false

Accepted Flags

Name Required Description
-kms-id Yes The ID of the KMS resource to be used to encrypt the password
-context No The KMS encryption context expressed in key=value format, as a string
-length No The length of the new password (default value: 12)
-special-chars No Whether the new password should contain special characters or not (default value: true)
-digits No Whether the new password should contain numbers or not (default value: true)

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Command line tool to generate random passwords and encrypt them using AWS KMS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages