项目作者: YuryStrozhevsky

项目描述 :
Simple BASE-64 coder/decoder (with OS-independant code)
高级语言: C++
项目地址: git://github.com/YuryStrozhevsky/BASE64.git
创建时间: 2014-05-03T04:30:14Z
项目社区:https://github.com/YuryStrozhevsky/BASE64

开源协议:BSD 2-Clause "Simplified" License

下载


Description

In my work I have to use BASE-64 encoders/decoders almost everytime. There are very important to me and definitely need to be 100% accurate. But sometimes I got a strange errors in code just because of mistakes in BASE-64 realizations. Finally I got a time (and necessity!) for implementing my own simple BASE-64 coder/decoder. The code could be compiled into a single *.exe file (BTW my code is “OS-independant”).

Usage

All the options with “u” are for BASE-64 URL encoding/decoding.

  1. BASE-64 coder/decoder, v1.0
  2. (c) 2014, Yury Strozhevsky, www.strozhevsky.com
  3. Usage:;
  4. b64.exe -e <file to encode> <output file>
  5. b64.exe -eu <file to encode> <output file>
  6. b64.exe -ed <file to encode> <output file with 64-length strings>
  7. b64.exe -eud <file to encode> <output file with 64-length strings>
  8. b64.exe -d <file to decode> <output file>
  9. b64.exe -du <file to decode> <output file>

License

Copyright (c) 2014, Yury Strozhevsky
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this
    list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.