Project

General

Profile

Actions

Bug #6799

closed

Digest::*.hexdigest returns an ASCII-8BIT String

Added by Eregon (Benoit Daloze) over 12 years ago. Updated over 12 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2012-07-15 trunk 36395) [x86_64-darwin10.8.0]
Backport:
[ruby-core:46792]

Description

$ ruby -rdigest/sha1 -e 'p Digest::SHA1.hexdigest("a").encoding'
#Encoding:ASCII-8BIT

I'm happy to provide a patch.


Files

0001-ext-digest-digest.c-hexencode_str_new-return-an-ASCI.patch (2.59 KB) 0001-ext-digest-digest.c-hexencode_str_new-return-an-ASCI.patch Eregon (Benoit Daloze), 07/27/2012 09:01 PM
noname (500 Bytes) noname Anonymous, 07/29/2012 10:53 AM
secure_random.patch (863 Bytes) secure_random.patch tenderlovemaking (Aaron Patterson), 09/06/2012 08:58 AM
noname (500 Bytes) noname Anonymous, 09/15/2012 03:53 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0