Files
metasploit-gs/lib/rex/crypto/rc4.rb
T
2021-02-08 12:24:12 +00:00

23 lines
367 B
Ruby

# -*- coding: binary -*-
require 'rc4'
module Rex
module Crypto
module Rc4
# Returns a decrypted or encrypted RC4 string.
#
# @param key [String] Secret key.
# @param [String]
def self.rc4(key, value)
rc4 = RC4.new(key)
# This can also be used to decrypt
rc4.encrypt(value)
end
end
end
end