PACK64 function


Syntax:

  PACK64(string) 

Takes a single string, expressed according to the MIME "Base64" specification (in RFC 1521), as an argument and returns the decoded (packed) string. Each four bytes in 'string' is packed to three bytes in the result (except possibly for the last four bytes); 'string' must be a multiple of 4 bytes. If any deviation from these specifications (or from the RFC 1521 "Base64" character set) is found, the null string is returned.

PACK64 is useful for processing the incoming user/password data encoded for the HTTP 'basic access authentication scheme' -- see the HTTP documentation for details.


[ previous section | GoServe | next section ]

From 'goserve.doc', version 2.32.
Copyright © International Business Machines Corporation, 1993, 1995.
All rights reserved.