base64.h 497 B

1234567891011121314151617181920212223242526
  1. /* base64.h
  2. * Michael McTernan, mm7323@bris.ac.uk
  3. * Functions to encode and decode strings
  4. * into base 64 (RFC1521 section 7).
  5. */
  6. #ifndef BASE64_HEADER
  7. #define BASE64_HEADER
  8. /*B64_Decode*/
  9. /* Decode string into a new buffer and
  10. * return it. Memory for the new
  11. * buffer is allocated.
  12. */
  13. char *B64_Decode(const char *string);
  14. /*B64_Encode*/
  15. /* Takes string and encodes it in base 64.
  16. * Returns the new string in allocated memory.
  17. */
  18. char *B64_Encode(const char *string);
  19. #endif