Skip to content

Instantly share code, notes, and snippets.

View iufuenza's full-sized avatar

iufuenza

View GitHub Profile

Encryptions methods using Ruby

In this gist I'll show you how to encrypt messages using Ruby built-in and external libraries. Whenever possible I'll show you how to define in the most simplest way the encryption and the decryption methods.

Two way encryption

  • Openssl
  def self.encrypt(input_word)
    key = 'secret'