mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 18:20:23 +00:00
Get rid of the "toLatin1()" call when converting the base64 encrypted string to a bytearray.
This commit is contained in:
@@ -331,7 +331,9 @@ void AuthorizationManager::ClearHostFail(QString host){
|
||||
|
||||
QString AuthorizationManager::DecryptSSLString(QString encstring, QString pubkey){
|
||||
//Convert from the base64 string back to a byte array
|
||||
QByteArray enc = QByteArray::fromBase64(encstring.toLatin1());
|
||||
QByteArray enc;
|
||||
enc.append(encstring);
|
||||
enc = QByteArray::fromBase64(enc);
|
||||
qDebug() << "Decrypt String:" << "Length:" << enc.length() << enc;
|
||||
qDebug() << " - Base64:" << encstring;
|
||||
unsigned char decode[4098] = {};
|
||||
|
||||
Reference in New Issue
Block a user