chuksjedi Posted March 27, 2017 Share Posted March 27, 2017 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. Quote Link to comment Share on other sites More sharing options...
chuksjedi Posted March 27, 2017 Author Share Posted March 27, 2017 It should be a function/method call Quote Link to comment Share on other sites More sharing options...
ginerjm Posted March 27, 2017 Share Posted March 27, 2017 You don't know how to program and yet you have an assignment to do? Nah... The world isn't that backwards. Quote Link to comment Share on other sites More sharing options...
chuksjedi Posted March 27, 2017 Author Share Posted March 27, 2017 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. Quote Link to comment Share on other sites More sharing options...
gizmola Posted March 28, 2017 Share Posted March 28, 2017 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.