blob: 39cebfbecd4938ec97d354a2d47ab0c7584c3df1 [file] [log] [blame]
license.botbf09a502008-08-24 00:55:551// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
initial.commit586acc5fe2008-07-26 22:42:524
[email protected]978df342009-11-24 06:21:535#ifndef BASE_BASE64_H__
6#define BASE_BASE64_H__
[email protected]32b76ef2010-07-26 23:08:247#pragma once
initial.commit586acc5fe2008-07-26 22:42:528
9#include <string>
10
[email protected]978df342009-11-24 06:21:5311namespace base {
[email protected]a9bb6f692008-07-30 16:40:1012
initial.commit586acc5fe2008-07-26 22:42:5213// Encodes the input string in base64. Returns true if successful and false
14// otherwise. The output string is only modified if successful.
15bool Base64Encode(const std::string& input, std::string* output);
16
17// Decodes the base64 input string. Returns true if successful and false
18// otherwise. The output string is only modified if successful.
19bool Base64Decode(const std::string& input, std::string* output);
20
[email protected]978df342009-11-24 06:21:5321} // namespace base
[email protected]a9bb6f692008-07-30 16:40:1022
[email protected]978df342009-11-24 06:21:5323#endif // BASE_BASE64_H__