[new applet] Cryptpw.
walter harms
wharms at bfs.de
Sun Jun 11 14:08:46 UTC 2006
Hi thomas,
recently there were some base64 patches. Maybe you can use them ?
Or check out l64a() that is part of glibc. (there are different
representations of base64 maybe this fits).
btw: do you realy want i<0 -> "." ?
hope that helps.
walter
> +static int i64c(int i)
> +{
> + if (i <= 0)
> + return ('.');
> + if (i == 1)
> + return ('/');
> + if (i >= 2 && i < 12)
> + return ('0' - 2 + i);
> + if (i >= 12 && i < 38)
> + return ('A' - 12 + i);
> + if (i >= 38 && i < 63)
> + return ('a' - 38 + i);
> + return ('z');
> +}
More information about the busybox
mailing list