Convert secrets from JSON files to upper-case

Fixes #55
This commit is contained in:
Jakob Nixdorf 2017-11-13 16:14:08 +01:00
parent 6d9473b277
commit 9e6a235e62
No known key found for this signature in database
GPG key ID: BE99BF86574A7DBC

View file

@ -119,7 +119,7 @@ public class Entry {
}
public Entry (JSONObject jsonObj) throws JSONException {
this.secret = new Base32().decode(jsonObj.getString(JSON_SECRET));
this.secret = new Base32().decode(jsonObj.getString(JSON_SECRET).toUpperCase());
this.label = jsonObj.getString(JSON_LABEL);
this.period = jsonObj.getInt(JSON_PERIOD);