Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement