Brian Dunning's FileMaker Custom Functions

BaseEncode ( inputInt ; base )

Base64, or base62 encode any integer

  Average rating: 4.5 (39 votes) Log in to vote

Cory Alder   Cory Alder
Davander Mobile Corporation
http://mobile.davander.com

Share on Facebook Share on Twitter

  Sample input:
BaseEncode ( 31337 , 64 )
  Sample output:
Hpp

  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

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: