oversecio / oversec_crypto

public crypto related sources for
https://github.com/oversecio/oversec
GNU General Public License v3.0
57 stars 9 forks source link

Crash on scanning an invalid (not an oversec key) QR-Code #24

Closed oversecio closed 8 years ago

oversecio commented 8 years ago

Version: 1003002


Thread: main Stacktrace: org.spongycastle.util.encoders.DecoderException: unable to decode base64 string: invalid characters encountered in base64 data at org.spongycastle.util.encoders.Base64.decode(SourceFile:135) at io.oversec.one.crypto.sym.OversecKeystore2.getPlainKeyFromBase64Text(SourceFile:229) at io.oversec.one.crypto.sym.ui.KeyImportCreateActivity.handleImportQr(SourceFile:683) at io.oversec.one.crypto.sym.ui.KeyImportCreateActivity.onQRCodeRead(SourceFile:435) at com.dlazaro66.qrcodereaderview.QRCodeReaderView.onPreviewFrame(SourceFile:150) at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1183)