change "digest" to "encoded" for challenge key