Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/proto/kademlia.rb
21532 views
1
# -*- coding: binary -*-
2
3
module Rex::Proto::Kademlia
4
# Decodes an on-the-wire representation of a Kademlia peer to its 16-character hex equivalent
5
#
6
# @deprecated Access via Rex::Proto::Kademlia::Util
7
# @param bytes [String] the on-the-wire representation of a Kademlia peer
8
# @return [String] the peer ID if valid, nil otherwise
9
def self.decode_peer_id(bytes)
10
Util.decode_peer_id(bytes)
11
end
12
end
13
14