Class: Wiris::Md5Tools

Inherits:
Object
  • Object
show all
Defined in:
lib/src-generic/Md5Tools.rb

Class Method Summary collapse

Class Method Details

.encodeBytes(bytes) ⇒ Object



7
8
9
10
# File 'lib/src-generic/Md5Tools.rb', line 7

def self.encodeBytes(bytes)
	bytes = bytes.getData()
	return Md5::encode(bytes.pack('c*'))
end

.encodeString(content) ⇒ Object



3
4
5
# File 'lib/src-generic/Md5Tools.rb', line 3

def self.encodeString(content)
	return Md5::encode(content)
end