/usr/include/arc/Base64.h is in nordugrid-arc-dev 4.2.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | // -*- indent-tabs-mode: nil -*-
// Base64 encoding and decoding
#ifndef ARCLIB_BASE64
#define ARCLIB_BASE64
#include <string>
namespace Arc {
/// Base64 encoding and decoding.
/** \ingroup common
* \headerfile Base64.h arc/Base64.h */
class Base64 {
public:
/// Constructor is not implemented. Use static methods instead.
Base64();
~Base64();
/// Encode a string to base 64
/**
* \since Added in 3.0.1.
**/
static std::string encode(const std::string& bufplain);
/// Decode a string from base 64
/**
* \since Added in 3.0.1.
**/
static std::string decode(const std::string& bufcoded);
// The next 4 methods are legacy API kept for backwards compatibility. They
// can be removed in the next major version.
static int encode_len(int len);
/// Encode a string to base 64
/** \deprecated Use encode(std::string&) instead */
static int encode(char *encoded, const char *string, int len);
static int decode_len(const char *bufcoded);
/// Decode a string from base 64
/** \deprecated Use decode(std::string&) instead */
static int decode(char *bufplain, const char *bufcoded);
};
} // namespace Arc
#endif // ARCLIB_BASE64
|