1 // Copyright 2000-2005 the Contributors, as shown in the revision logs.
2 // Licensed under the Apache Public Source License 2.0 ("the License").
3 // You may not use this file except in compliance with the License.
5 package org.ibex.crypto;
8 public static String encode(long l) {
9 StringBuffer ret = new StringBuffer();
11 if ((l % 36) < 10) ret.append((char)(((int)'0') + (int)(l % 36)));
12 else ret.append((char)(((int)'A') + (int)((l % 36) - 10)));
15 return ret.toString();