monich / foil Goto Github PK
View Code? Open in Web Editor NEWglib-style crypto
License: Other
glib-style crypto
License: Other
Hey,
thank you for providing foil. I was able to produce
foil-tools-1.0.23-0.x86_64
libglibutil-1.0.57-0.x86_64
libfoil-1.0.23-0.x86_64
packages for RHEL8/CentOS8.
I would like to have a workflow that allows access to data
of your FoilApps (FoilPics, FoilNotes, FoilAuth). Especially
to be able to decrypt data from backups.
I am able to decrypt data from FoilPics and FoilNotes:
$ foilmsg -d -P {{pass}} -s foil.key -f FoilPics/{{fileid}} -o /tmp/output.png
$ foilmsg -d -P {{pass}} -s foil.key -f FoilNotes/{{fileid}} -o /tmp/output.txt
but
$ foilmsg -d -P {{pass}} -s foil.key -f FoilAuth/{{fileid}} -o /tmp/output.txt
shows not an expected output (currently a 10byte long bin blob output).
I was expecting an otpauth:// scheme or similar as output?
Is there an additional decoding necessary?
Thanks!
$ LANG=C rpm -V foil-tools
Unsatisfied dependencies for foil-tools-1.0.23-0.x86_64:
libfoil.so.1()(64bit) is needed by (installed) foil-tools-1.0.23-0.x86_64
rpm -q --provides libfoil
libfoil = 1.0.23-0
libfoil(x86-64) = 1.0.23-0
Should
https://github.com/monich/foil/blob/master/libfoil/Makefile#L333
be 755? That would AFAIK allow that rpm's automatic-provides macro build a list with libfoil.so.1()(64bit) ...
While trying to rpmbuild the master/1.0.25 branch on CentOS Stream 9 I noticed that the lib was created as "/usr/lib64/libfoil.so...".
Following patch helped to extract the right version:
--- libfoil-1.0.25/libfoil/Makefile.org 2022-10-08 22:51:41.000000000 +0200
+++ libfoil-1.0.25/libfoil/Makefile 2022-10-09 01:13:55.151724690 +0200
@@ -62,7 +62,7 @@
#
VERSION_FILE = $(INCLUDE_DIR)/foil_version.h
-get_version = $(shell grep -E "^ *\\\#define +FOIL_VERSION_$1 +[0-9]+$$" $(VERSION_FILE) | sed "s/ */ /g" | cut -d " " -f 3)
+get_version = $(shell grep -E "^ *\\#define +FOIL_VERSION_$1 +[0-9]+$$" $(VERSION_FILE) | sed "s/ */ /g" | cut -d " " -f 3)
VERSION_MAJOR = $(call get_version,MAJOR)
VERSION_MINOR = $(call get_version,MINOR)
BTW:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.