Code Monkey home page Code Monkey logo

Comments (4)

caffeinatedMike avatar caffeinatedMike commented on May 27, 2024 1

You can look here for reference.

Base64

Base64 has the advantage of generating shorter representations because it uses a 64 character set instead of hexadecimal's 16. While Base 64 can use any 64 characters, many implementations follow IETF PEM RFC 1421 which specifies A-Z, a-z, 0-9, / and + while using = for padding. 

Base32

Base32, as defined in IETF RFC 3548, uses the characters A-Z and 2-7.

So, essentially, what you could look for is if the string includes any of the numbers 0, 1, 8, 9 and that should be enough to rule out the string being base32-encoded.

from decodify.

s0md3v avatar s0md3v commented on May 27, 2024 1

@3lixy We will decode for both ;)

from decodify.

s0md3v avatar s0md3v commented on May 27, 2024

Base64 doesn't always end with a = . Can you please elaborate on how to differentiate between them?

from decodify.

3lixy avatar 3lixy commented on May 27, 2024

try: and except may work better to implement as there probably are cases where it would detect as 64 but is actually a 32?

from decodify.

Related Issues (17)

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.