Class: 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.



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

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

Instance Method Details

#proofObject



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

def proof
  challenge_and_proof[:proof]
end

#public_key_bytesObject



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

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

#salt_bytesObject



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

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