CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/proto/kademlia.rb
Views: 11655
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