From: Chuck Remes Date: 2010-08-20T01:35:19+09:00 Subject: Re: Is there any clever way to encode the uuid string with base64? On Aug 19, 2010, at 11:19 AM, Cyril.Liu wrote: > I've got the uuid string using uuid.rb just like this: > > ree-1.8.7-2010.02 > uuid = UUID.new() > => MAC: 34:15:9e:33:f8:3c Sequence: 19368 > ree-1.8.7-2010.02 > uuid.generate(:compact) > => "d52553808dda012d4ba834159e33f83c" > > But the string is too long for me, i want to encode it with base64. > Is any clever way to do this? If anything, base64 encoding will make it *longer*. What are you trying to accomplish? cr