Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/flannon/cloud-kms-symmetric-encryption

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/flannon/cloud-kms-symmetric-encryption

  • v0.0.0-20200315211557-8d44d3aa4551
  • Source
  • Go
  • Socket score

Version published
Created
Source
cloud-kms-symmetric-encryption

An example of symmetric key encryption using the Goole glient library for Go.

This example assumes a service account with KMS access, and a service account key at ./account.json. It also assumes a single KMS key ring in the project and a single symmetic key in the keyring. For multiple key rings, or multiple keys refer to .projectrc and se the values appropriately. Running main.go will encrypte the contents of the file "nonesence.json", write the encrypted contents to nonesence.enc, and then decrypt nonsense.enc and print the contents.

. .projectrc
go run main.go

FAQs

Package last updated on 15 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc