Skip to content
Snippets Groups Projects
Commit 3ab4ddd1 authored by Björn Schießle's avatar Björn Schießle
Browse files

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

Needs to be implemented and integrated into the settings.
parent adf5c953
Branches
No related tags found
No related merge requests found
...@@ -30,6 +30,17 @@ namespace OCA_Encryption; ...@@ -30,6 +30,17 @@ namespace OCA_Encryption;
class Crypt { 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 * @brief Create a new encryption keypair
* @return array publicKey, privatekey * @return array publicKey, privatekey
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment