mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-02 03:26:06 -04:00
fixing regression handling v1 key format (un-decoded base64)
This commit is contained in:
parent
0e71211fad
commit
3b0ab7e99f
4 changed files with 10 additions and 12 deletions
|
@ -1138,11 +1138,11 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||
newKey = newKey.substring(0, ampersandPos);
|
||||
}
|
||||
|
||||
// version 2 uses base58, version 1 uses base64
|
||||
// version 2 uses base58, version 1 uses base64 without decoding
|
||||
try {
|
||||
symmetricKey = CryptTool.base58decode(newKey);
|
||||
} catch(e) {
|
||||
symmetricKey = atob(newKey);
|
||||
symmetricKey = newKey;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue