Stefan Claas
2024-12-30 14:21:31 UTC
Reply
Permalinkwhile no encryption, this is an enhanced version of a standard
base64 encoder/decoder.
It writes the filename, file size and SHA256 hashsum as a Header,
like in this example:
bart.jpg
2837
8f17bcf334121fe993a48c61179d09c18c25aa2dac1c9c8e6ccef8f860e68997
/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQIBAQEBAQIB
AQECAgICAgICAgIDAwQDAwMDAwICAwQDAwQEBAQEAgMFBQQEBQQEBAT/2wBDAQEB
AQEBAQIBAQIEAwIDBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE
BAQEBAQEBAQEBAQEBAT/wgARCAAwADADAREAAhEBAxEB/8QAGgABAQADAQEAAAAA
AAAAAAAACAAEBQcCCf/EABwBAAIDAAMBAAAAAAAAAAAAAAAGBQcIAQIDBP/aAAwD
[...]
When decoding one no longer needs to provide a filename, because
it is detected and the file is automatically written in the current
directory.
$ base64+ -d < bart.txt
Original size: 2837 bytes
SHA256: 8f17bcf334121fe993a48c61179d09c18c25aa2dac1c9c8e6ccef8f860e68997
Matches original: true
Hope you like base64+!
https://github.com/706f6c6c7578/base64-plus
--
Regards
Stefan
Regards
Stefan