md5 was replaced with digest/md5 in 1.9 and 1.8.5
git-svn-id: file:///home/svn/framework3/trunk@4119 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
364df6eac1
commit
00b2cafec8
|
@ -1,5 +1,5 @@
|
|||
require 'base64'
|
||||
require 'md5'
|
||||
require 'digest/md5'
|
||||
require 'stringio'
|
||||
|
||||
begin
|
||||
|
@ -429,14 +429,14 @@ module Text
|
|||
# Raw MD5 digest of the supplied string
|
||||
#
|
||||
def self.md5_raw(str)
|
||||
MD5.digest(str)
|
||||
Digest::MD5.digest(str)
|
||||
end
|
||||
|
||||
#
|
||||
# Hexidecimal MD5 digest of the supplied string
|
||||
#
|
||||
def self.md5(str)
|
||||
MD5.hexdigest(str)
|
||||
Digest::MD5.hexdigest(str)
|
||||
end
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in New Issue