Updating decrypt to use callback
Refactor use of decrypt for callback