Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/proto/kerberos/crypto/rsa_md5.rb
19515 views
1
# -*- coding: binary -*-
2
3
module Rex
4
module Proto
5
module Kerberos
6
module Crypto
7
class RsaMd5
8
# The MD5 checksum of the data
9
#
10
# @param key [String] ignored for this checksum type
11
# @param msg_type [Integer] ignored for this checksum type
12
# @param data [String] the data to checksum
13
# @return [String] the generated checksum
14
def checksum(key, msg_type, data)
15
Rex::Text.md5_raw(data)
16
end
17
end
18
end
19
end
20
end
21
end
22
23