Skip to content

Instantly share code, notes, and snippets.

@thiagosf
Created July 3, 2021 13:25
Show Gist options
  • Save thiagosf/b2fdd94cb4286c607f24e7b64efa5f7c to your computer and use it in GitHub Desktop.
Save thiagosf/b2fdd94cb4286c607f24e7b64efa5f7c to your computer and use it in GitHub Desktop.

Revisions

  1. thiagosf created this gist Jul 3, 2021.
    4 changes: 4 additions & 0 deletions encypt-decrypt-openssl.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    # reference: https://stackoverflow.com/a/47517988/6649757

    echo 'foo' | openssl aes-256-cbc -a -salt
    echo 'U2FsdGVkX1/QGdl4syQE8bLFSr2HzoAlcG299U/T/Xk=' | openssl aes-256-cbc -a -d -salt