SHARE
TWEET

Untitled

a guest Jun 25th, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # File: password-8.rb
  2. #
  3. require_relative 'encryption-8'
  4.  
  5. class Password
  6.   include Encryption
  7.  
  8.   def initialize(clear_text_password)
  9.     @clear_text_password = clear_text_password
  10.   end
  11.  
  12.   def get
  13.     encrypt
  14.   end
  15.  
  16.   private(:encrypt)
  17.  
  18.   private
  19.  
  20.   def message_to_encrypt
  21.     @clear_text_password
  22.   end
  23. end
  24.  
  25. password = Password.new('foo-bar')
  26. puts password.get
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top