Skip to content

Commit 839c544

Browse files
authored
updated readme
1 parent 80574a1 commit 839c544

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Example for 256bit CBC using QString
6565
QByteArray encodeText = encryption.encode(inputStr.toLocal8Bit(), hashKey, hashIV);
6666
QByteArray decodeText = encryption.decode(encodeText, hashKey, hashIV);
6767
68-
QString decodedString = QString(QAESEncryption::RemovePadding(decodeText));
68+
QString decodedString = QString(encryption.removePadding(decodeText));
6969
7070
//decodedString == inputStr !!
7171
```
@@ -86,7 +86,9 @@ Static invocation without creating instances, 256 bit key, ECB mode, starting fr
8686
QByteArray hashIV = QCryptographicHash::hash(iv.toLocal8Bit(), QCryptographicHash::Md5);
8787
8888
//Static invocation
89-
QAESEncryption::Crypt(QAESEncryption::AES_256, QAESEncryption::CBC, inputStr.toLocal8Bit(), hashKey, hashIV);
89+
QByteArray encrypted = QAESEncryption::Crypt(QAESEncryption::AES_256, QAESEncryption::CBC,
90+
inputStr.toLocal8Bit(), hashKey, hashIV);
91+
QString decodedString = QString(QAESEncryption::RemovePadding(decodeText));
9092
9193
```
9294

0 commit comments

Comments
 (0)