Skip to content

Instantly share code, notes, and snippets.

@berkedel
Created October 29, 2021 15:18
Show Gist options
  • Save berkedel/b9c0311770e45512c281c23f80c948ef to your computer and use it in GitHub Desktop.
Save berkedel/b9c0311770e45512c281c23f80c948ef to your computer and use it in GitHub Desktop.

Encrypt and Decrypt Plain String

Encrypt

echo "<plain_string>" | openssl enc -e -des3 -base64 -pass pass:mypasswd -pbkdf2

Decrypt

echo "<encrypted_string>" | openssl enc -d -des3 -base64 -pass pass:mypasswd -pbkdf2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment