{"id":13744886,"url":"https://github.com/spjwebster/as3base64","last_synced_at":"2025-05-09T04:31:12.244Z","repository":{"id":453277,"uuid":"76707","full_name":"spjwebster/as3base64","owner":"spjwebster","description":"An ActionScript 3.0 library for encoding/decoding strings and objects to/from Base 64","archived":false,"fork":false,"pushed_at":"2008-11-16T12:56:12.000Z","size":885,"stargazers_count":26,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-04T05:05:18.385Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://dynamicflash.com/goodies/base64","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spjwebster.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-11-16T12:26:02.000Z","updated_at":"2024-08-02T11:03:17.000Z","dependencies_parsed_at":"2022-08-06T09:15:22.059Z","dependency_job_id":null,"html_url":"https://github.com/spjwebster/as3base64","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spjwebster%2Fas3base64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spjwebster%2Fas3base64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spjwebster%2Fas3base64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spjwebster%2Fas3base64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spjwebster","download_url":"https://codeload.github.com/spjwebster/as3base64/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224811299,"owners_count":17373940,"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":[],"created_at":"2024-08-03T05:01:17.869Z","updated_at":"2024-11-15T16:32:09.617Z","avatar_url":"https://github.com/spjwebster.png","language":"ActionScript","readme":"﻿as3base64\n=========\n\nThe `Base64` class can encode `String` or `ByteArray` objects to Base 64 encoding and vice versa.\n\n\nDownload\n--------\n\nYou can download the latest version of the `Base64` class from [http://dynamicflash.com/goodies/base64](http://dynamicflash.com/goodies/base64)\n\n\nAdding as3base64 to your project\n--------------------------------\n\nBefore you can use the `Base64` class, you need to add the `as3base64.swc` file to your library path. \n\nIf you're using Flex Builder 3, simple copy the file into your `libs` directory and it'll automatically be imported into your project. \n\nIf you're using the Flex SDK command-line compiler you'll need to add the SWC to your library path using the `-library-path` command-line switch:\n    \n    mxmlc -library-path+=/path/to/as3base64.swc ...\n\nFlash CS3 isn't smart enough to know what to to with a SWC file, so if you're using Flash CS3 you need to add the `src` directory to your classpath in your project's Publish Settings.\n\nIf you're one of the lucky people using Flash CS4, you just add the SWC to the classpath in your project's Publish Settings.\n\n\nUsage\n-----\n\nEncoding from and decoding to `String`:\n\n    import com.dynamicflash.util.Base64;\n\n    var source:String = \"Hello, world!\";\n    var encoded:String = Base64.encode(source);\n    trace(encoded)\n\n    var decoded:String = Base64.decode(source);\n    trace(decoded);\n\nEncoding from and decoding to a `ByteArray`:\n\n    import com.dynamicflash.util.Base64;\n\n    var obj:Object = {name:\"Dynamic Flash\", url:\"http://dynamicflash.com\"};\n    var source:ByteArray = new ByteArray();\n    source.writeObject(obj);\n    var encoded:String = Base64.encodeByteArray(source);\n    trace(encoded);\n\n    var decoded:ByteArray = Base64.decodeToByteArray(encoded);\n    var obj2:Object = decoded.readObject();\n    trace(obj2.name + \"(\" + obj2.url + \")\");\n\n\nCompiling the SWC\n-----------------\n\nYou need to make sure that the `compc` command-line compiler from the [Flex SDK]() is on your path. Then run either `build.sh` (Mac/Linux) or `build.bat` (Windows) from a terminal window to rebuild the `build/as3base64.swc` file. \n\n\nHistory\n-------\n\n## 1.1.0\nRepackaged library as a SWC so that you don't have to have my code hanging around in your `src` folder.\n\n## 1.0.0\nInitial release.\n\n\nBug reports\n-----------\n\nBug reports should be filed at [http://dynamicflash.com/goodies/base64](http://dynamicflash.com/goodies/base64)\n\n\nLicense\n-------\n\nThe base64 class is released under the MIT license.\n\nCopyright (c) 2006 Steve Webster\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","funding_links":[],"categories":["Unsorted"],"sub_categories":["Other API"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspjwebster%2Fas3base64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspjwebster%2Fas3base64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspjwebster%2Fas3base64/lists"}