function generateLicense(licenseData, chiper) { var chiper = chiper || "SekawanMediaInformatikaSoftwareHouse&ITConsultant"; var signature = CryptoJS.SHA512(Ext.encode(licenseData) + chiper).toString(); var license = Ext.clone(licenseData); license.signature = signature; return Ext.encode(license) } generateLicense({ "product": "SIPAS 3.1", "productCode": "SIPAS", "productVersion": "3.1", "productPackage": "Enterprise", "userId": "pdpaljayadkijakarta", "userDisplay": "PD PAL Jaya DKI Jakarta", "userEmail": "", "userSite": "http://www.paljaya.com/", "registerDate": Date.now(), "trialMode": false, "expiredDate": (new Date('2017-03-01')).getTime(), "style": "" });