Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
Classes | Typedefs | Functions
hdicoreCrypt.h File Reference

Header file for performing hashing, encoding, or encrypting data. More...

Classes

class  hdi::core::crypt::aes::Key
 Wraps around an AES key's raw data for some added conveniences. More...
 
class  hdi::core::crypt::aes::InitVector
 Wraps around an AES initialization vector's raw data for some added conveniences. More...
 
class  hdi::core::crypt::rsa::PublicKey
 Wraps around a public RSA key's raw data for some added conveniences. More...
 
class  hdi::core::crypt::rsa::PrivateKey
 Wraps around a private RSA key's raw data for some added conveniences. More...
 

Typedefs

typedef std::vector< byte > hdi::core::crypt::aes::ByteVector
 
typedef std::auto_ptr< Key > hdi::core::crypt::aes::KeyAP
 
typedef std::auto_ptr< InitVector > hdi::core::crypt::aes::InitVectorAP
 
typedef std::auto_ptr< PublicKey > hdi::core::crypt::rsa::PublicKeyAP
 
typedef std::auto_ptr< PrivateKey > hdi::core::crypt::rsa::PrivateKeyAP
 

Functions

std::string hdi::core::crypt::rot13 (const std::string &str_)
 Performs a rot-13 cipher (Caeser's cipher) on a string. More...
 
std::string hdi::core::crypt::sha1 (const std::string &str_)
 Generates an SHA1 hash of a given source string. More...
 
std::string hdi::core::crypt::base64Encode (const std::string &plain_)
 Base-64 encodes any data stuffed into a string. More...
 
std::string hdi::core::crypt::base64Decode (const std::string &cipher_)
 Decodes any data previously base-64 encoded. More...
 
bool hdi::core::crypt::aes::encrypt (const Key &key_, const InitVector &iv_, const std::string &data_, std::string &b64Cipher__)
 Encrypts a string (or raw bytes stuffed into a string) with an AES key. More...
 
bool hdi::core::crypt::aes::decrypt (const Key &key_, const InitVector &iv_, const std::string &b64Cipher_, std::string &data__)
 Decrypts a base-64 encoded string of cipher text (previously encrypted with the encrypt() function or equivalent) More...
 
plugin::AESKey * hdi::core::crypt::aes::__accessImpl (const Key &)
 
plugin::AESInitializationVector * hdi::core::crypt::aes::__accessImpl (const InitVector &)
 
bool hdi::core::crypt::rsa::generateKeyPair (const int32_t size_, PrivateKey &privKey__, PublicKey &pubKey__)
 Generates a new RSA key pair of a given size/length. More...
 
bool hdi::core::crypt::rsa::encryptWithPublicKey (const PublicKey &key_, const std::string &data_, std::string &b64Cipher__)
 Encrypts a string (or raw bytes stuffed into a string) with a public RSA key. More...
 
bool hdi::core::crypt::rsa::decryptWithPrivateKey (const PrivateKey &key_, const std::string &b64Cipher_, std::string &data__)
 Decrypts a base-64 encoded string of cipher text (previously encrypted with the encryptWithPublicKey() function or equivalent) More...
 
bool hdi::core::crypt::rsa::encryptWithPrivateKey (const PrivateKey &key_, const std::string &data_, std::string &b64Cipher__)
 Encrypts a string (or raw bytes stuffed into a string) with a private RSA key. More...
 
bool hdi::core::crypt::rsa::decryptWithPublicKey (const PublicKey &key_, const std::string &b64Cipher_, std::string &data__)
 Decrypts a base-64 encoded string of cipher text (previously encrypted with the encryptWithPrivateKey() function or equivalent) More...
 

Detailed Description

Header file for performing hashing, encoding, or encrypting data.