Sujet : [base64+]
De : pollux (at) *nospam* tilde.club (Stefan Claas)
Groupes : sci.cryptDate : 30. Dec 2024, 15:21:31
Autres entêtes
Organisation : To protect and to server
Message-ID : <vkua9d$33gds$3@paganini.bofh.team>
User-Agent : flnews/1.3.0pre29 (for GNU/Linux)
Hi all,
while 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-- RegardsStefan