Method: NewRelic::Agent::Aws.decode_to_hex
- Defined in:
- lib/new_relic/agent/aws.rb
permalink .decode_to_hex(access_key) ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/new_relic/agent/aws.rb', line 38 def self.decode_to_hex(access_key) bytes = access_key.delete('=').each_char.map { |c| CHARACTERS.index(c) } bytes.each_slice(8).map do |section| convert_section(section) end.flatten[0...6].join end |