-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCryptoKit.hpp
47 lines (38 loc) · 888 Bytes
/
CryptoKit.hpp
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
45
46
47
//
// CryptoKit.hpp
// Maw Kit
//
// Created by Lluís Ulzurrun de Asanza Sàez on 18/02/16.
//
//
#ifndef CryptoKit_hpp
#define CryptoKit_hpp
#include <string>
namespace MK {
/**
* `CryptoKit` namespace offers methods to encrypt and descrypt data.
*/
namespace CryptoKit {
/**
* Returns given content encrypted.
*
* @note Credits to: http://www.cplusplus.com/forum/windows/128374/
*
* @param content Content to encrypt.
*
* @return Encrypted content.
*/
const std::string symmetricEncrypt( const std::string &content );
/**
* Returns given encrypted content decrypted.
*
* @note Credits to: http://www.cplusplus.com/forum/windows/128374/
*
* @param content Encrypted content.
*
* @return Decrypted content.
*/
const std::string symmetricDecrypt( const std::string &content );
}; // namespace CryptoKit
}; // namespace MK
#endif /* CryptoKit_hpp */