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:
parent
adf5c953dd
commit
3ab4ddd1da
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue