Debug decrypt function