Giter Site home page Giter Site logo

base64enc's People

Contributors

s-u avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

aushev su-sandbox

base64enc's Issues

Strict decoding

Hi Simon,

I have been using your R package, base64enc (version 0.1-3), and like it. Thank you very much for writing and sharing it!

However, I came across a problem, where invalid base64 strings (e.g. “u” or “aGVsbG8sd29ybGQh=”) are successfully and silently processed by base64decode(). In my code, I therefore had to use this regular expression (adapted from http://stackoverflow.com/a/8571649) to validate the strings before decoding them:

^(([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==))?$`

May I suggest that you add an option "strict" to base64decode() (defaulting to FALSE for backward compatibility) to detect and report malformed base64 strings?

Best,

Florent

`null` character

Trying to do this via R rather than perl, R chokes on the "\000.........\000......." part. (perl does fine)

License info

I'm confused by the license info at "GPL-2 | GPL-3."

Edit: I think this means "or"

Document how to submit bugs

Hi,

The latest CPAN release (and current development code I believe) simply mention Simon's email address and the rforge website (which does not seem to have a bug tracker). Github is mentioned nowhere. Therefore, most users do not know that there is a bugtracker (Github) and will just send an email, which I believe is not the intent or the best way to proceed.

So, perhaps update the DESCRIPTION file with the Github URL?

Best,

Florent

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.