simple sha-1 implementations in ruby and obj-c