rubyworks / crypt3

Unix Crypt 3 in Ruby
http://rubyworks.github.com/crypt3
BSD 2-Clause "Simplified" License
7 stars 3 forks source link

Not really pure ruby? #1

Closed explody closed 14 years ago

explody commented 14 years ago

It got my hopes up, but I have to respectfully disagree that this is pure ruby. Most of the hashing methods require digest, which is a relatively thin wrapper around a bunch of C extensions, e.g.:

$ head -3 /usr/lib/ruby/1.8/digest.rb

require 'digest.so'

module Digest

rubyworks commented 14 years ago

Point taken. I meant "pure Ruby" in that it only uses what comes with Ruby. After all Ruby itself is written in C. So I didn't think of digest.rb not being "Ruby" since it ships with Ruby --in fact, I actually had no idea how digest.rb was implemented. Sorry.

explody commented 14 years ago

No worries. It wouldn't be any issue at all except for those of us that use non-C ruby (think maglev) and/or otherwise can't use native extensions. Thanks for the response.