function to ask for the encryption mode (server side or client side).

Needs to be implemented and integrated into the settings.
This commit is contained in:
Bjoern Schiessle 2012-07-26 13:47:43 +02:00
parent adf5c953dd
commit 3ab4ddd1da
1 changed files with 11 additions and 0 deletions

View File

@ -30,6 +30,17 @@ namespace OCA_Encryption;
class Crypt {
/**
* @brief return encryption mode client or server side encryption
* @param string user name
* @return string 'client' or 'server'
*/
public static function mode($user) {
//TODO: allow user to set encryption mode and check the selection of the user
// for the moment I just return 'client' for test purposes
return 'client';
}
/**
* @brief Create a new encryption keypair
* @return array publicKey, privatekey