From: ben ******* Date: 2009-08-12T18:26:17+09:00 Subject: sha1/base64 hello, i have this string in input : 97975000-5RUT DE PRUEBA3312002003-09-040a4O6Kbx8Qj3K4iWSP4w7KneZYeJ+g/prihYtIEolKt3cykSxl1zO8vSXu397QhTmsX7SBEudTUx++2zDXBhZw==Aw==100 i try to compute the SHA-1 : sha = Digest::SHA1.hexdigest(input) I obtain correct result => 9A2115CC03E05F99A996FBCE47C4554905D75D1D After this first operation, i try to obtain the same result in Base64 (res=Base64.b64encode(sha)). If the operation was created with success, i should obtain => miEVzAPgX5mplvvOR8RVSQXXXR0= But, i find an other result and i don't understand what is the meaning of that ? Can you help me please ? miEVzAPgX5mplvvOR8RVSQXXXR0= -- Posted via http://www.ruby-forum.com/.