Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Ortega Ortega-Dan

View GitHub Profile
View know-orK8SgetCurrentClusterInfo.sh
#! /bin/bash
kubectl config view --minify -o yaml|grep current-context
kubectl config view --minify -o yaml|grep namespace
@Ortega-Dan
Ortega-Dan / encrypt_openssl.md
Last active Oct 11, 2020 — forked from dreikanter/encrypt_openssl.md
File encryption using OpenSSL
View encrypt_openssl.md

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt: