SHARE
TWEET

Untitled

a guest Jun 25th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # File: password-7.rb
  2. #
  3. require_relative 'encryption-8'
  4.  
  5. class Password
  6.   extend Encryption
  7.  
  8.   def initialize(clear_text_password)
  9.     @clear_text_password = clear_text_password
  10.   end
  11.  
  12.   def get
  13.     Password.encrypt(@clear_text_password)
  14.   end
  15. end
  16.  
  17. password = Password.new('foo-bar')
  18. 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