added smallsha1 to hash-encode data
Added base64 encoder & decoder