Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
95
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-9.rb
  2. #
  3. require_relative 'encryption-8'
  4.  
  5. class Password
  6. include Encryption
  7. extend Encryption
  8.  
  9. def initialize(clear_text_password)
  10. @clear_text_password = clear_text_password
  11. end
  12.  
  13. def get
  14. encrypt
  15. end
  16.  
  17. private(:encrypt)
  18.  
  19. private
  20.  
  21. def message_to_encrypt
  22. @clear_text_password
  23. end
  24. end
  25.  
  26. password = Password.new('foo-bar')
  27. puts password.get
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement