Research Article

Spontaneous Ad Hoc Mobile Cloud Computing Network

Algorithm 3

Program code of the class trustednet key.
class trustednet_Key
{
   private:
     int privateKey;
   public:
     int publicKey;
     trustednet_Key(void):privateKey(rand()%1000), publicKey(rand()%1000);
     void writeKey(std::ostream %os) const;
};