Giter Site home page Giter Site logo

jjulien / l33tcrypto Goto Github PK

View Code? Open in Web Editor NEW

This project forked from circa10a/l33tcrypto

0.0 1.0 0.0 17 KB

Cryptography for the most l33t haxx0rs

License: MIT License

Go 13.58% Python 12.53% Shell 10.21% Java 32.71% Ruby 10.54% HCL 4.33% JavaScript 12.35% Puppet 3.76%

l33tcrypto's Introduction

l33tcrypto ๐Ÿ”’

For HT

Usage

Go

# String, rounds of "encryption"
go run encrypt.go secret 3

Python

# String, rounds of "encryption"
./encrypt.py secret 3

Bash

# String, rounds of "encryption"
./encrypt.sh secret 3

Java

# First, compile the class because this is fucking Java
$ javac Encrypt.java

# String, rounds of "encryption"
$ java Encrypt secret 3

JavaScript

# String, rounds of "encryption"
node ./encrypt.js secret 3

Ruby

# String, rounds of "encryption"
./encrypt.rb secret 3

Terraform (because why not)

Interactively

$ terraform init && terraform apply -auto-approve
var.input
  Enter a value: secret

var.times
  Enter a value: 3

null_resource.encrypt: Creating...
null_resource.encrypt: Provisioning with 'local-exec'...
null_resource.encrypt (local-exec): Executing: ["/bin/sh" "-c" "./encrypt.py secret 3"]
null_resource.encrypt (local-exec): "encrypted" WXpKV2FtTnRWakE9
null_resource.encrypt (local-exec): "decrypted" secret
null_resource.encrypt: Creation complete after 0s [id=2042342408304500010]

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Supply values on the CLI

$ terraform apply -var input=secret -var times=3 -auto-approve
null_resource.encrypt: Creating...
null_resource.encrypt: Provisioning with 'local-exec'...
null_resource.encrypt (local-exec): Executing: ["/bin/sh" "-c" "./encrypt.py secret 3"]
null_resource.encrypt (local-exec): "encrypted" WXpKV2FtTnRWakE9
null_resource.encrypt (local-exec): "decrypted" secret
null_resource.encrypt: Creation complete after 0s [id=8726143734733607353]

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Use a tfvars file
Sample terraform.tfvars

input="secret"
times=1
# Only run if it exists
$ test -f terraform.tfvars && terraform apply -auto-approve
null_resource.encrypt: Creating...
null_resource.encrypt: Provisioning with 'local-exec'...
null_resource.encrypt (local-exec): Executing: ["/bin/sh" "-c" "./encrypt.py secret 3"]
null_resource.encrypt (local-exec): "encrypted" WXpKV2FtTnRWakE9
null_resource.encrypt (local-exec): "decrypted" secret
null_resource.encrypt: Creation complete after 0s [id=3935885297718964381]

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Ansible

ansible-playbook ./encrypt.yaml

Puppet

puppet apply ./encrypt.pp

l33tcrypto's People

Contributors

circa10a avatar tlkamp avatar cujarrett 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.