Article View: borland.public.cppbuilder.nativeapi
Article #1146Re: GUID to Base64 or ANSI85 String?
From: Remy Lebeau (TeamB)
Date: Mon, 29 Oct 2007 17:27
Date: Mon, 29 Oct 2007 17:27
23 lines
1846 bytes
1846 bytes
"Shane Stump" <ShaneATStumpWare.com> wrote in message news:472534e6@newsgroups.borland.com... > Does anyone have a component / method that will take a GUID > and convert it to a BASE64 or ASCII85 string? If you go to http://www.deja.com and search through the newsgroup archives, examples of base64 algorithms have been posted many times before. I have never heard of Ascii85 before, but a search on any web search engine produces links to many source code examples. > I need to have a uniquely generated string for a gift card module > I am writing and I need it to be <= 22 characters. A base64-encoded GUID would not satisfy that requirement as it would always be 24 characters in length, as would a full ASCII85-encoded GUID as well. In the case of ASCII85, though, you could truncate off the begin and end markers (if you remember to put them back on before decoding), resulting in 20 characters. Gambit
Technical Details
Message-ID:
<47261826$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<472534e6@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,de5d24cedcbbcb2e X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <472534e6@newsgroups.borland.com> Subject: Re: GUID to Base64 or ANSI85 String? Date: Mon, 29 Oct 2007 10:27:12 -0700 Lines: 25 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 207.178.157.90 Message-ID: <47261826$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1193678886 207.178.157.90 (29 Oct 2007 10:28:06 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail