Skip to content

Encrypt and Decrypt a document or selection using OpenSSL in Sublime Text 2 & 3

Notifications You must be signed in to change notification settings

rmgas1/SublimeText-Crypto

 
 

Repository files navigation

Crypto Sublime Text 2 and 3 Package


Please note: This version uses some additional options for encryption and decryption.

This means that files encrypted with this version are NOT compatible with files encrypted with a prior version.

The new options are the equivalent of:

echo "data" | openssl enc -e -aes256 -md sha512 -pbkdf2 -iter 500000 -base64 -pass "pass:lolcats"

Previously this was:

echo "data" | openssl enc -e -aes128 -base64 -pass "pass:lolcats"

Encrypt/ Decrypt a document or selection(s) using OpenSSL

This Package depends on openssl

Preview

Install

Recommended: Installation via the Package Control (Search for Crypto)

To install manually clone this project into your Sublime Text 2|3\Packages folder:

OSX

SublimeText 2:

git clone git://github.com/mediaupstream/SublimeText-Crypto.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Crypto

SublimeText 3:

git clone git://github.com/mediaupstream/SublimeText-Crypto.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Crypto

Windows

SublimeText 2:

git clone git://github.com/mediaupstream/SublimeText-Crypto.git "%APPDATA%\Sublime Text 2\Packages\Crypto"

SublimeText 3:

git clone git://github.com/mediaupstream/SublimeText-Crypto.git "%APPDATA%\Sublime Text 3\Packages\Crypto"

Usage

After installation you will have:

  • Right-click menu item Crypto and Tools > Crypto with two options:
    • Encrypt
    • Decrypt
  • Default keyboard shortcuts:
    • ⌘+K,e on OSX or ctrl+K,e on Linux/Windows (Encrypt)
    • ⌘+K,d on OSX or ctrl+K,d on Linux/Windows (Decrypt)
  • Package Settings: Preferences > Package Settings > Crypto
    • Set the path to your openssl executable - default: openssl
    • Set the Encryption Cipher - default: -aes128
    • Obfuscate the password input - default 'false'

Note:

By default password input will not be obfuscated. If you want your password input to be obfuscated you can change the setting obfuscate_password to true in your Preferences > Package Settings > Crypto > Settings - User.

If you choose to enable obfuscate_password please be aware that there is a bug with the implementation that doesn't allow you to copy/paste your password.

The commands work on a selection, multiple selections or if nothing is selected the whole document. Once you trigger the command you will be prompted to enter a password.

Author & Contributors

Derek Anderson
Isaac Muse
Elliot Marsden
@circulosmeos
RafalG

License

MIT License

About

Encrypt and Decrypt a document or selection using OpenSSL in Sublime Text 2 & 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%