proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
CryptUtil.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015-present, Facebook, Inc.
3
* All rights reserved.
4
*
5
* This source code is licensed under the BSD-style license found in the
6
* LICENSE file in the root directory of this source tree. An additional grant
7
* of patent rights can be found in the PATENTS file in the same directory.
8
*
9
*/
10
#pragma once
11
12
#include <
folly/Range.h
>
13
#include <string>
14
15
namespace
proxygen
{
16
17
// Base64 encode using openssl, may return empty string on allocation failure
18
std::string
base64Encode
(
folly::ByteRange
text);
19
20
// MD5 encode using openssl
21
std::string
md5Encode
(
folly::ByteRange
text);
22
}
proxygen::base64Encode
std::string base64Encode(folly::ByteRange text)
Definition:
CryptUtil.cpp:21
Range.h
proxygen::md5Encode
std::string md5Encode(folly::ByteRange text)
Definition:
CryptUtil.cpp:60
folly::Range< const unsigned char * >
string
const char * string
Definition:
Conv.cpp:212
proxygen
Definition:
ExMessageHandler.h:14
proxygen
lib
utils
CryptUtil.h
Generated by
1.8.11