BaseEncode ( inputInt ; base )
Base64, or base62 encode any integer
Average rating: 4.5 (39 votes) Log in to vote
Cory Alder Davander Mobile Corporation http://mobile.davander.com |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
BaseEncode (inputInt, base)
Base encoder by Cory Alder written in 2011.
Recursively converts any integer number from base 10 to any base up to 64.
Has only been tested on bases 64 and 62. Theoretically should work with any base below 64.
Doesn't accept non integer inputs.
Based on code by Martin Sorich 2009 nov 10 (http://www.briandunning.com/cf/1088)
And on php code from Program & Design (http://programanddesign.com/php/base62-encode/)
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.