Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. # File: password-3.rb
  2. #
  3. require_relative 'encryption-3'
  4.  
  5. class Password
  6. include Encryption::InstanceMethods
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement