-brightgreen.svg) -brightgreen.svg)
Modern Fortran standards (2003+) have introduced better support for strings manipulations. Exploiting such new Fortran capabilities, BeFoR64 provides an easy to use module library for encoding and decoding Fortran types (binary internal representation) in ascii-base64-encoded string.
Go to Top
Any feature request is welcome.
Go to Top
BeFoR64 is an open source project, it is distributed under a multi-licensing system:
Anyone is interest to use, to develop or to contribute to BeFoR64 is welcome, feel free to select the license that best matches your soul!
More details can be found on wiki.
Go to Top
Besides this README file the BeFoR64 documentation is contained into its own wiki. Detailed documentation of the API is contained into the GitHub Pages that can also be created locally by means of ford tool.
Let us assume our goal is encoding a binary integer. It is as simple as
use befor64 ... character(len=:), allocatable:: code64 ! base64 encoded string ... call b64_encode(n=12._R8P,code=code64) print "(A)", code64
But you are not limited to a simple integer scalar, you can encode real, integer, characters scalar or arrays, and by means of the auxiliary Lib_Pack
library also mixed types. See the wiki.