urlsafe_base64

Michael Doub mikedoub at gmail.com
Fri Oct 10 14:12:45 EDT 2014


Does anyone have a livecode equivalent for the ruby urlsafe_base64 function?   

urlsafe_base64(n=nil, padding=false)
::urlsafe_base64 generates a random URL-safe base64 string.
The argument n specifies the length of the random length. The length of the result string is about 4/3 of n.  If n is not specified, 16 is assumed. It may be larger in future.
The boolean argument padding specifies the padding. If it is false or nil, padding is not generated. Otherwise padding is generated. By default, padding is not generated because “=” may be used as a URL delimiter.   The result may contain A-Z, a-z, 0-9, “-” and “_”. “=” is also used if padding is true.


http://www.ruby-doc.org/stdlib-1.9.3/libdoc/securerandom/rdoc/SecureRandom.html#method-c-urlsafe_base64



More information about the use-livecode mailing list