@TreacherousNexus@tech.lgbtHave you seen https://www.passwordstore.org/
It seems like what you were trying to do, but using best practices