generic decrypt function with parameter (no encryption, ...); new functions to expode uri