RubyGems Navigation menu

sym 3.0.2

Sym is a ruby library (gem) that offers both the command line interface (CLI) and a set of rich Ruby APIs, which make it rather trivial to add encryption and decryption of sensitive data to your development or deployment workflow. For additional security the private key itself can be encrypted with a user-generated password. For decryption using the key the password can be input into STDIN, or be defined by an ENV variable, or an OS-X Keychain Entry. Unlike many other existing encryption tools, Sym focuses on getting out of your way by offering a streamlined interface with password caching (if MemCached is installed and running locally) in hopes to make encryption of application secrets nearly completely transparent to the developers. Sym uses symmetric 256-bit key encryption with the AES-256-CBC cipher, same cipher as used by the US Government. For password-protecting the key Sym uses AES-128-CBC cipher. The resulting data is zlib-compressed and base64-encoded. The keys are also base64 encoded for easy copying/pasting/etc. Sym accomplishes encryption transparency by combining several convenient features: 1. Sym can read the private key from multiple source types, such as pathname, an environment variable name, a keychain entry, or CLI argument. You simply pass either of these to the -k flag — one flag that works for all source types. 2. By utilizing OS-X Keychain on a Mac, Sym offers truly secure way of storing the key on a local machine, much more secure then storing it on a file system, 3. By using a local password cache (activated with -c) via an in-memory provider such as memcached, sym invocations take advantage of password cache, and only ask for a password once per a configurable time period, 4. By using SYM_ARGS environment variable, where common flags can be saved. This is activated with sym -A, 5. By reading the key from the default key source file ~/.sym.key which requires no flags at all, 6. By utilizing the --negate option to quickly encrypt a regular file, or decrypt an encrypted file with extension .enc 7. By implementing the -t (edit) mode, that opens an encrypted file in your $EDITOR, and replaces the encrypted version upon save & exit, optionally creating a backup. 8. By offering the Sym::MagicFile ruby API to easily read encrypted files into memory. Please refer the module documentation available here: https://www.rubydoc.info/gems/sym

Gemfile:
= Copier Copié!

installation:
=

Versions:

  1. 3.0.2 - September 23, 2022 (4,2 Mo)
  2. 3.0.1 - February 12, 2021 (4,21 Mo)
  3. 3.0.0 - August 15, 2020 (2,8 Mo)
  4. 2.10.0 - August 14, 2020 (1,35 Mo)
  5. 2.8.5 - October 13, 2018 (1,36 Mo)
Voir toutes les versions (33)

Dépendances de Runtime (5):

colored2 ~> 3
dalli >= 0
highline >= 0
slop ~> 4.3

Dépendances de Development (14):

aruba >= 0
bundler >= 0
codecov >= 0
irbtools >= 0
rake >= 0
rspec ~> 3
rspec-its >= 0
rubocop >= 0
simplecov >= 0
yard >= 0

Propriétaires:

Pushed by:

Auteurs:

  • Konstantin Gredeskoul

Total de contrôle SHA 256:

1c4bfbab59297f75dcb85df1b9d389b41e73bf69903831718da0504313ff5231

Total de téléchargements 337 712

Pour cette version 72 307

License:

aucune

Version de Ruby requise: >= 2.6

New versions require MFA: true

Version published with MFA: true

Liens: