implement decrypt tag