
hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2017
12:59 PM
Helps to create code
Help to create code for use in the same brs
$mysecretkey = "mysecretkey";
$expiry = strtotime("+1 hour");
$b64 = base64_encode(md5($mysecretkey.$expiry,true));
$b64u = rtrim(str_replace(array('+','/'),array('-','_'),$b64),'=');
echo "http://sample.com/$path?e=$expiry&st=$b64u\n";
Our system http://www.rokumanager.com
2 REPLIES 2

hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2017
11:12 AM
Re: Helps to create code
I'm trying with this but I have no result
dateNow=CreateObject("roDateTime")
dateNow=dateNow.asSeconds()+200
ba1 = CreateObject("roByteArray")
ba1.FromAsciiString("claveprivada"+dateNow)
digest = CreateObject("roEVPDigest")
digest.Setup("md5")
digest.Update(ba1)
hash = digest.Final()
print "Hash => "; hash
ba2 = CreateObject("roByteArray")
ba2.FromAsciiString(hash)
usableHash = ba2.ToBase64String()
print "UsableHash => "; usableHash
Our system http://www.rokumanager.com

hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2017
08:09 PM
Re: Helps to create code
alguien tendría una idea
Our system http://www.rokumanager.com