Code Monkey home page Code Monkey logo

krypto's Introduction

Krypto

To upload to S3 using Customer Managed Key S3 Client Side Encryption using CMK.

Requirement

  1. AWS CLI with necessary config and credentials updated
  2. Permission to upload into the specified bucket
  3. JDK 1.5 and above

How to execute

java -jar krypto.jar -h

Encrypting and placing files on S3 with customer managed keys...

ErrorMissing required options: i, e, k, r, b

usage: java -jar krypto.jar -e [ "AES | DES | HmacSHA1 | HmacSHA256" ]

        -i [ " /tmp/file.txt | c:\temp\file.txt" ]

        -k [ "ANY-STRING-OF-CHARS" ]

        -r [ "us-east-1" ]

-b,--bucket Bucket Name -e,--encryption Encryption type -h,--help Bucket Name -i,--input File to be encrypted with path -k,--key Encryption Key -r,--region AWS Region


Encryption key -k

The log displays a base-64 encoded key & default key is "Encrypt"

Sample Output


Encrypting and placing files on S3 with customer managed keys... FileName : text.txt Input : /Users/demo/Documents/projects/JAVA/text.txt EncryptionType : AES128 InputEncryptionKey : QURCQ0VER0g= AWS Region : US_EAST_1 MyRegion : us-east-1

Files uploaded successfully without wrapping key

Terms

This program is open to use and I do not gurantee for any loss or damages occured. I have tested the same and did not incur any loss.

krypto's People

Contributors

gitforanand avatar

Watchers

 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.