Decode secret before using it

Closes #5