\r
namespace OCA\Encryption;\r
\r
-//require_once '../3rdparty/Crypt_Blowfish/Blowfish.php';\r
require_once realpath(dirname(__FILE__) . '/../3rdparty/Crypt_Blowfish/Blowfish.php');\r
\r
/**\r
}\r
\r
/**\r
- * @brief Get the blowfish encryption handeler for a key\r
+ * @brief Get the blowfish encryption handler for a key\r
* @param $key string (optional)\r
* @return \Crypt_Blowfish blowfish object\r
*\r
- * if the key is left out, the default handeler will be used\r
+ * if the key is left out, the default handler will be used\r
*/\r
private static function getBlowfish($key = '') {\r
\r
}\r
}\r
\r
-}
\ No newline at end of file
+}\r
/**
- * @brief ncryption using legacy blowfish method
- * @param data data to encrypt
- * @param passwd password
+ * @brief encryption using legacy blowfish method
+ * @param $data string data to encrypt
+ * @param $passwd string password
+ * @return string
*/
function legacyEncrypt($data, $passwd) {