Exemplo n.º 1
0
        /**
         * @brief Decrypts the data string.
         *
         * @param encrypted Encrypted data string.
         * @return Decrypted string.
         */
        public string Decrypt(string encrypted)
        {
            Log.Debug("[Cipher] Decrypt");

            return(CipherImpl.Decrypt(encrypted, cipherType));
        }
Exemplo n.º 2
0
 /**
  * @brief Encrypts the data string.
  *
  * @param cleartext Raw data string.
  * @return Encrypted string.
  */
 public string Encrypt(string cleartext)
 {
     Log.Debug("[Cipher] Encrypt");
     return(CipherImpl.Encrypt(cleartext, cipherType));
 }