added base decryption logic for master key