Class: RubyHome::StartSRPService

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_home/http/services/start_srp_service.rb

Instance Method Summary collapse

Constructor Details

#initialize(username:, password:) ⇒ StartSRPService

Returns a new instance of StartSRPService.



3
4
5
6
# File 'lib/ruby_home/http/services/start_srp_service.rb', line 3

def initialize(username: , password:)
  @username = username
  @password = password
end

Instance Method Details

#proofObject



16
17
18
# File 'lib/ruby_home/http/services/start_srp_service.rb', line 16

def proof
  challenge_and_proof[:proof]
end

#public_key_bytesObject



12
13
14
# File 'lib/ruby_home/http/services/start_srp_service.rb', line 12

def public_key_bytes
  [public_key].pack('H*')
end

#salt_bytesObject



8
9
10
# File 'lib/ruby_home/http/services/start_srp_service.rb', line 8

def salt_bytes
  [salt].pack('H*')
end