require('encdec')
password='clientIdlightdeviceNamelightproductKeya1xj1mAHz0L'
key = 'eCyjrzg3EYK4tZlWnLwNj1U3AyqctltR'
-- encdec.md5(password) -- get only hash md5
--pw = encdec.sha1(password,key) -- get only hash sha1
-- encdec.crc16(password) -- get crc
--secret=encdec.base64enc(password) -- ok but is not encription
--pwd_decoded=encdec.base64dec(secret) -- ok but is not encription
--sha_secret=encdec.sha256(password) -- undocumented ( create sha256 hash)
encoded_pwd=encdec.hmacsha1(password, key)
log('pw')
log(encoded_pwd)
log('end')