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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.