Base64 encoding using OpenSSL
Summary: This change adds a function to base64 encode. It is used to encode the CSR which gets added to the connection url. Reviewed By: passy Differential Revision: D31570706 fbshipit-source-id: 8356550fe87ae3ac6aae8616744a9339cf69b511
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5a795ad52a
commit
5944002c4c
21
xplat/Flipper/FlipperBase64.h
Normal file
21
xplat/Flipper/FlipperBase64.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace facebook {
|
||||
namespace flipper {
|
||||
|
||||
class Base64 {
|
||||
public:
|
||||
static std::string encode(const std::string& input);
|
||||
};
|
||||
|
||||
} // namespace flipper
|
||||
} // namespace facebook
|
||||
Reference in New Issue
Block a user