Jump to content

Create isJediEnabled() and getJediKeypair() method


chuksjedi

Recommended Posts

Please, I was given a task to write a script that will enable an encryption and also fetch the Keypair. The task is as follow:

Create isJediEnabled() and getJediKeypair() method on Site entity.

 

 

 

I am new to PHP and I don´t even know where to start from.

Link to comment
Share on other sites

Is not that I don´t know how to code, but I am new to php and I am still learning the foundation path. This is not a class assignment. This was given to my boss and he ask me to help out. As he is my boss, he expect a try from me.

The main task is to check if an encryption is enabled and fetch the Keypair. It is a function call.

Link to comment
Share on other sites

function isJediEnabled($something)
{
   if ($something) {
       return true;
   } else {
       return false;
   } 
}

function getJediKeyPair()
{
    return 'Keypair';
}
Feel free to PayPal me some cash for the help. If this isn't what you are looking for we need some actual details in regards to what these functions are actually suppossed to do. For example, in regards to a 'Keypair' then you're talking about a private key and a public key. Why you would have a function that returns a 'Keypair' doesn't make a whole lot of sense without some background as to what you are trying to do and why. We aren't mind readers.

 

Show us some code you've been working on!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.