{"id":18427138,"url":"https://github.com/nowisesys/base64code","last_synced_at":"2025-04-13T19:38:48.473Z","repository":{"id":141471755,"uuid":"167392587","full_name":"nowisesys/base64code","owner":"nowisesys","description":"Base64 encoding and decoding library for Java","archived":false,"fork":false,"pushed_at":"2019-01-28T12:56:36.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T08:27:30.208Z","etag":null,"topics":["base64","codec","decode","encode"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nowisesys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-24T15:44:20.000Z","updated_at":"2019-01-28T12:58:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"93a84560-4114-475c-a40f-0a2703c66c68","html_url":"https://github.com/nowisesys/base64code","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowisesys%2Fbase64code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowisesys%2Fbase64code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowisesys%2Fbase64code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowisesys%2Fbase64code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nowisesys","download_url":"https://codeload.github.com/nowisesys/base64code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248769428,"owners_count":21158812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["base64","codec","decode","encode"],"created_at":"2024-11-06T05:09:46.787Z","updated_at":"2025-04-13T19:38:48.465Z","avatar_url":"https://github.com/nowisesys.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Base64Code - Base64 Encoder/Decoder Java Library\n\n### INTRODUCTION:\n\nThis Java\u0026trade; library implements Base64 encoding and decoding. It was\nwritten because I couldn't find anything like it in the JDK except for an\ninternal class in com.sun.*, and using classes from this package is\ntotally unsupported by Sun.\n\n### DIFFERENCES:\n\nWhats differs this library from most others are:\n   \n1. It supports encoding and decoding of input streams in chunk mode.\n2. The size of the internal allocated input buffer can be restricted.\n     \nWhen encoding or decoding an string or byte array only the result buffer\ngets allocated, the source is used as input buffer.\n   \n### SPECIFICATION:\n\nThis implementation is based on http://en.wikipedia.org/wiki/Base64 and \nRFC 2045 (section 6.8). However, support for the line break mode in 76 \ncharacter blocks mentioned in the RFC are not supported, mostly because \nI don't have any use of it.\n\nThe library has been verified to produce the same result as other commonly \nused implementations, among them:\n\n* The base64_encode() and base64_decode() functions in PHP.\n* The base64 command from GNU coreutils.\n\n### EXAMPLE:\n\n```java\npackage client;\n\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.IOException;\nimport se.nowise.codecs.base64.Base64Encoder;\nimport se.nowise.codecs.base64.Base64Decoder;\n\npublic class Main {\n\n    /* \n     * Decode input stream and write decoded result to output stream.\n     */\n    public static void decode(InputStream in, OutputStream out) {\n        Base64Decoder decoder = new Base64Decoder();\n        try {\n            byte[] result = decoder.decode(in);\n            while (result != null) {\n                out.write(result);\n                result = decoder.decode(in);\n            }\n        } catch (IOException e) {\n            System.err.print(e);\n        }\n    }\n\n    /* \n     * Encode input stream and write encoded result to output stream.\n     */\n    public static void encode(InputStream in, OutputStream out) {\n        Base64Encoder encoder = new Base64Encoder();\n        try {\n            byte[] result = encoder.encode(in);\n            while (result != null) {\n                out.write(result);\n                result = encoder.encode(in);\n            }\n        } catch (IOException e) {\n            System.err.print(e);\n        }\n    }\n}\n```\n\n### LICENSE:\n\nThe Base64Code Java Library is licensed under GPL with the classpath \nexception. This means that you are free to use this library even in \ncommercial applications (closed source), see the files COPYING and\nCOPYING.CLASSPATH for details.\n\nThe license gives you permission to (freely) link to and use this library\nin unmodified form. If you use (copy) source code from this library to\nyour application, then the you have to release your work as open source \nas well.\n\nSee [GNU Classpath](https://www.gnu.org/software/classpath/license.html) exception document \nfor further details, also distibuted in source code (docs/COPYING.CLASSPATH)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowisesys%2Fbase64code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnowisesys%2Fbase64code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowisesys%2Fbase64code/lists"}