New decrypt function