Giter VIP home page Giter VIP logo

wadelau / base62x Goto Github PK

View Code? Open in Web Editor NEW
50.0 3.0 13.0 2.41 MB

Base62x is an alternative approach to Base 64 without symbols in output. 无符号的Base64编码解码方案.

Home Page: https://ufqi.com/dev/base62x/

License: Apache License 2.0

C 10.07% PHP 31.27% Java 14.01% JavaScript 12.60% HTML 1.46% Perl 13.43% Python 13.96% Makefile 0.03% C++ 3.17%
base62 base64 urlencode urldecode base16 base32 base62x symbols php javascript

base62x's People

Contributors

solomonxie avatar wadelau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

base62x's Issues

Extra long numbers conversion failed due to error in math function in PHP

<?php
$num = 362967911866744841;
print "$num / 60 = ".($dvd=sprintf('%.20F', $num/60))."\n";
print "$dvd * 60 = ".($num2=sprintf('%.20F', $dvd=$dvd*60))."\n";
print "num2 - num = ".($num3 = sprintf('%.20F', ($num2-$num)))."\n";
?>

Output:
362967911866744841 / 60 = 6049465197779081.00000000000000000000
6049465197779081.00000000000000000000 * 60 = 362967911866744832.00000000000000000000
num2 - num = 0.00000000000000000000

The error is that 362967911866744841 / 60 should be 6049465197779080.6833333333333333.
And also, 6049465197779081.00000000000000000000 * 60 is not equal to 362967911866744841 .

Due to this error, 362967911866744841 in Base 10 would be a1122334ef in Base 60, and K9XMIBhi09 in Base62x, but it will failed to reverse back from Base62x to Base 60 (a1122334ff).

Be careful in precision when dealing with extra long numbers!

Need help: add Base62x to Base64 in Wikipedia.org

Hi guys,
I need help by editing a few of sentences on Base62x in Wikipedia.org.
It would be an appendage to the page of Base64 in Wikipedia.org or a newly-created item on it.

I am trying to do so to help more developers know the better approach we have built to the traditional Base64.
The attempt had been made myself but failed due to that I am one of the authors of Base62x.

Could you please help on this addition of Base62x to Wikipedia?

Thanks in advance.

License

There is no license in this repo, so effectively all code is proprietary and we can't use it for anything...

Links of "papers" are not available

Just found in the README that these links are not available anymore:

[ -R/p2SK ](http://ufqi.com/naturedns/search?q=-r/C2TZ) , page url in [ -URL4P ](http://ufqi.com/naturedns/search?q=-url4p) .

[-Base62x in RearchGate, -R/12Sb ](http://ufqi.com/naturedns/search?q=-R/12Sb ) .

You might want to reference these to stable links instead of searching result.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.