Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
Namespaces | Functions
hdi::core::crypt Namespace Reference

Organizes all AES, RSA, and other basic cryptographic functions into one namespace for convenience. More...

Namespaces

namespace  aes
 Organizes all AES functionality into one namespace for convenience.
 
namespace  rsa
 Organizes all RSA functionality into one namespace for convenience.
 

Functions

std::string rot13 (const std::string &str_)
 Performs a rot-13 cipher (Caeser's cipher) on a string.
 
std::string md5 (const std::string &str_)
 Generates an MD5 hash of a given source string.
 
std::string sha1 (const std::string &str_)
 Generates an SHA1 hash of a given source string.
 
std::string sha2_256 (const std::string &str_)
 Generates an SHA2-256 hash of a given source string.
 
std::string sha2_512 (const std::string &str_)
 Generates an SHA2-512 hash of a given source string.
 
std::string base64Encode (const std::string &plain_)
 Base-64 encodes any data stuffed into a string.
 
std::string base64Decode (const std::string &cipher_)
 Decodes any data previously base-64 encoded.
 

Detailed Description

Organizes all AES, RSA, and other basic cryptographic functions into one namespace for convenience.

Function Documentation

◆ base64Decode()

std::string hdi::core::crypt::base64Decode ( const std::string &  cipher_)

Decodes any data previously base-64 encoded.

Author
GW
Date
08/2013
Parameters
cipher_Base-64 encoded text to decode
Returns
The value of the cipher_ argument, but base-64 decoded

◆ base64Encode()

std::string hdi::core::crypt::base64Encode ( const std::string &  plain_)

Base-64 encodes any data stuffed into a string.

Author
GW
Date
08/2013
Parameters
plain_Plain text (or binary data stuffed in a string) to base-64 encode
Returns
The value of the plain_ argument, but base-64 encoded

◆ md5()

std::string hdi::core::crypt::md5 ( const std::string &  str_)

Generates an MD5 hash of a given source string.

Author
GW
Date
05/2017
Parameters
str_String to hash with the MD5 algorithm (binary data inside of a string is also acceptable)
Returns
A string representing the hexadecimal data of the MD5 hash value

◆ rot13()

std::string hdi::core::crypt::rot13 ( const std::string &  str_)

Performs a rot-13 cipher (Caeser's cipher) on a string.

Author
GW
Date
08/2013
Parameters
str_String on which the rotation will be performed
Returns
Value of str_ argument, but with all alphabetic characters rotated by 13 positions
Note
Only the ASCII portion of the string will be rotated.

◆ sha1()

std::string hdi::core::crypt::sha1 ( const std::string &  str_)

Generates an SHA1 hash of a given source string.

Author
GW
Date
08/2013
Parameters
str_String to hash with the SHA1 algorithm (binary data inside of a string is also acceptable)
Returns
A string representing the hexadecimal data of the SHA1 hash value

◆ sha2_256()

std::string hdi::core::crypt::sha2_256 ( const std::string &  str_)

Generates an SHA2-256 hash of a given source string.

Author
GW
Date
05/2017
Parameters
str_String to hash with the SHA2-256 algorithm (binary data inside of a string is also acceptable)
Returns
A string representing the hexadecimal data of the SHA2-256 hash value

◆ sha2_512()

std::string hdi::core::crypt::sha2_512 ( const std::string &  str_)

Generates an SHA2-512 hash of a given source string.

Author
GW
Date
05/2017
Parameters
str_String to hash with the SHA2-512 algorithm (binary data inside of a string is also acceptable)
Returns
A string representing the hexadecimal data of the SHA2-512 hash value