14 best Ruby Encryption libraries in 2024

share link

by SK dot icon Updated: Jan 4, 2023

technology logo
technology logo

Guide Kit Guide Kit  

Data security methods like encryption make data unintelligible to anyone without a secret key or password. Many libraries and tools that offer cryptographic operations are available in the Ruby environment and can be used to conduct encryption. Many capabilities are available for working with encryption in the Ruby encryption libraries. Support for different encryption methods, key generation, encryption and decryption, hash functions, message authentication codes (MACs), certificate management, and other features are some of the common characteristics offered by these libraries. 


Ruby encryption can be applied in several situations when it's necessary to store or securely communicate sensitive information. Typical illustrations include: 


  1. Web applications: A web server and client, such as a browser, can communicate securely using encryption. SSL/TLS, which encrypts the data exchanged between the server and the client, can be used for this. 
  2. Mobile applications: Data saved on a mobile device or exchanged between a mobile device and a server can be secured via encryption. 
  3. Cloud storage: To prevent unauthorized access, data stored in the cloud can be encrypted. 
  4. File storage: Data stored in files on a local computer or networked device can be secured via encryption. 
  5. Network communication: Using encryption to secure communications over a network, data sent between computers is shielded from eavesdropping. 


Check out the below list to find the best Ruby encryption libraries for your application development:

attr_encryptedby attr-encrypted

Ruby doticonstar image 1956 doticonVersion:v4.0.0doticon
License: Permissive (MIT)

Generates attr_accessors that encrypt and decrypt attributes

Support
    Quality
      Security
        License
          Reuse

            attr_encryptedby attr-encrypted

            Ruby doticon star image 1956 doticonVersion:v4.0.0doticon License: Permissive (MIT)

            Generates attr_accessors that encrypt and decrypt attributes
            Support
              Quality
                Security
                  License
                    Reuse

                      rubyzipby rubyzip

                      Ruby doticonstar image 1295 doticonVersion:v2.3.2doticon
                      no licences License: No License (null)

                      Official Rubyzip repository

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                rubyzipby rubyzip

                                Ruby doticon star image 1295 doticonVersion:v2.3.2doticonno licences License: No License

                                Official Rubyzip repository
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          cryptosphereby cryptosphere

                                          Ruby doticonstar image 1160 doticonVersion:Currentdoticon
                                          License: Permissive (MIT)

                                          Encrypted peer-to-peer web application platform for decentralized, privacy-preserving applications

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    cryptosphereby cryptosphere

                                                    Ruby doticon star image 1160 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                    Encrypted peer-to-peer web application platform for decentralized, privacy-preserving applications
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              lockboxby ankane

                                                              Ruby doticonstar image 1292 doticonVersion:Currentdoticon
                                                              License: Permissive (MIT)

                                                              Modern encryption for Ruby and Rails

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        lockboxby ankane

                                                                        Ruby doticon star image 1292 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                        Modern encryption for Ruby and Rails
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  rbnaclby RubyCrypto

                                                                                  Ruby doticonstar image 921 doticonVersion:Currentdoticon
                                                                                  License: Permissive (MIT)

                                                                                  Ruby FFI binding to the Networking and Cryptography (NaCl) library (a.k.a. libsodium)

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            rbnaclby RubyCrypto

                                                                                            Ruby doticon star image 921 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                            Ruby FFI binding to the Networking and Cryptography (NaCl) library (a.k.a. libsodium)
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      symmetric-encryptionby reidmorrison

                                                                                                      Ruby doticonstar image 471 doticonVersion:Currentdoticon
                                                                                                      License: Permissive (Apache-2.0)

                                                                                                      Symmetric Encryption for Ruby Projects using OpenSSL

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                symmetric-encryptionby reidmorrison

                                                                                                                Ruby doticon star image 471 doticonVersion:Currentdoticon License: Permissive (Apache-2.0)

                                                                                                                Symmetric Encryption for Ruby Projects using OpenSSL
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          strongboxby spikex

                                                                                                                          Ruby doticonstar image 393 doticonVersion:Currentdoticon
                                                                                                                          License: Permissive (MIT)

                                                                                                                          Secures ActiveRecord attributes with public key encryption

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    strongboxby spikex

                                                                                                                                    Ruby doticon star image 393 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                    Secures ActiveRecord attributes with public key encryption
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              gibberishby mdp

                                                                                                                                              Ruby doticonstar image 379 doticonVersion:Currentdoticon
                                                                                                                                              License: Permissive (MIT)

                                                                                                                                              Simple Ruby encryption module

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        gibberishby mdp

                                                                                                                                                        Ruby doticon star image 379 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                        Simple Ruby encryption module
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  crypt_keeperby jmazzi

                                                                                                                                                                  Ruby doticonstar image 280 doticonVersion:v2.3.0doticon
                                                                                                                                                                  License: Permissive (MIT)

                                                                                                                                                                  Transparent ActiveRecord encryption

                                                                                                                                                                  Support
                                                                                                                                                                    Quality
                                                                                                                                                                      Security
                                                                                                                                                                        License
                                                                                                                                                                          Reuse

                                                                                                                                                                            crypt_keeperby jmazzi

                                                                                                                                                                            Ruby doticon star image 280 doticonVersion:v2.3.0doticon License: Permissive (MIT)

                                                                                                                                                                            Transparent ActiveRecord encryption
                                                                                                                                                                            Support
                                                                                                                                                                              Quality
                                                                                                                                                                                Security
                                                                                                                                                                                  License
                                                                                                                                                                                    Reuse

                                                                                                                                                                                      json-jwtby nov

                                                                                                                                                                                      Ruby doticonstar image 284 doticonVersion:v1.16.3doticon
                                                                                                                                                                                      License: Permissive (MIT)

                                                                                                                                                                                      JSON Web Token and its family (JSON Web Signature, JSON Web Encryption and JSON Web Key) in Ruby

                                                                                                                                                                                      Support
                                                                                                                                                                                        Quality
                                                                                                                                                                                          Security
                                                                                                                                                                                            License
                                                                                                                                                                                              Reuse

                                                                                                                                                                                                json-jwtby nov

                                                                                                                                                                                                Ruby doticon star image 284 doticonVersion:v1.16.3doticon License: Permissive (MIT)

                                                                                                                                                                                                JSON Web Token and its family (JSON Web Signature, JSON Web Encryption and JSON Web Key) in Ruby
                                                                                                                                                                                                Support
                                                                                                                                                                                                  Quality
                                                                                                                                                                                                    Security
                                                                                                                                                                                                      License
                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                          sekretsby ahoward

                                                                                                                                                                                                          Ruby doticonstar image 258 doticonVersion:Currentdoticon
                                                                                                                                                                                                          License: Permissive (BSD-2-Clause)

                                                                                                                                                                                                          sekrets is a command line tool and library used to securely manage encrypted files and settings in your rails' applications and git repositories.

                                                                                                                                                                                                          Support
                                                                                                                                                                                                            Quality
                                                                                                                                                                                                              Security
                                                                                                                                                                                                                License
                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                    sekretsby ahoward

                                                                                                                                                                                                                    Ruby doticon star image 258 doticonVersion:Currentdoticon License: Permissive (BSD-2-Clause)

                                                                                                                                                                                                                    sekrets is a command line tool and library used to securely manage encrypted files and settings in your rails' applications and git repositories.
                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                          License
                                                                                                                                                                                                                            Reuse

                                                                                                                                                                                                                              pwsby janlelis

                                                                                                                                                                                                                              Ruby doticonstar image 209 doticonVersion:Currentdoticon
                                                                                                                                                                                                                              License: Permissive (MIT)

                                                                                                                                                                                                                              Command-Line Password Safe 🔐︎

                                                                                                                                                                                                                              Support
                                                                                                                                                                                                                                Quality
                                                                                                                                                                                                                                  Security
                                                                                                                                                                                                                                    License
                                                                                                                                                                                                                                      Reuse

                                                                                                                                                                                                                                        pwsby janlelis

                                                                                                                                                                                                                                        Ruby doticon star image 209 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                                                                                                        Command-Line Password Safe 🔐︎
                                                                                                                                                                                                                                        Support
                                                                                                                                                                                                                                          Quality
                                                                                                                                                                                                                                            Security
                                                                                                                                                                                                                                              License
                                                                                                                                                                                                                                                Reuse

                                                                                                                                                                                                                                                  cryptonoteby alainmeier

                                                                                                                                                                                                                                                  Ruby doticonstar image 163 doticonVersion:Currentdoticon
                                                                                                                                                                                                                                                  License: Permissive (MIT)

                                                                                                                                                                                                                                                  :lock: A simple open source web application that lets users encrypt and share messages that can only be read once.

                                                                                                                                                                                                                                                  Support
                                                                                                                                                                                                                                                    Quality
                                                                                                                                                                                                                                                      Security
                                                                                                                                                                                                                                                        License
                                                                                                                                                                                                                                                          Reuse

                                                                                                                                                                                                                                                            cryptonoteby alainmeier

                                                                                                                                                                                                                                                            Ruby doticon star image 163 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                                                                                                                            :lock: A simple open source web application that lets users encrypt and share messages that can only be read once.
                                                                                                                                                                                                                                                            Support
                                                                                                                                                                                                                                                              Quality
                                                                                                                                                                                                                                                                Security
                                                                                                                                                                                                                                                                  License
                                                                                                                                                                                                                                                                    Reuse

                                                                                                                                                                                                                                                                      aescryptby Gurpartap

                                                                                                                                                                                                                                                                      Ruby doticonstar image 156 doticonVersion:Currentdoticon
                                                                                                                                                                                                                                                                      License: Permissive (MIT)

                                                                                                                                                                                                                                                                      A simple and opinionated AES encrypt / decrypt Ruby gem that just works.

                                                                                                                                                                                                                                                                      Support
                                                                                                                                                                                                                                                                        Quality
                                                                                                                                                                                                                                                                          Security
                                                                                                                                                                                                                                                                            License
                                                                                                                                                                                                                                                                              Reuse

                                                                                                                                                                                                                                                                                aescryptby Gurpartap

                                                                                                                                                                                                                                                                                Ruby doticon star image 156 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                                                                                                                                                A simple and opinionated AES encrypt / decrypt Ruby gem that just works.
                                                                                                                                                                                                                                                                                Support
                                                                                                                                                                                                                                                                                  Quality
                                                                                                                                                                                                                                                                                    Security
                                                                                                                                                                                                                                                                                      License
                                                                                                                                                                                                                                                                                        Reuse