マニュアル: Base64

投稿日: 更新日:

BSD版とGNU(Linux)版の互換性

BSD版はデコードが -D なのに対し、GNU(Linux)版は -d である。 この互換性を回避するのは難しいので、opensslコマンドを使うとよい。

openssl enc -d -base64 -A

デコード方法(Java)

Apache Commons Codec

デコードはURLセーフかどうかを考慮する必要はない1

The URL-safe parameter is only applied to encode operations. Decoding seamlessly handles both modes.