Remove not needed else statement

Cleanup as per comment
This commit is contained in:
Herman van Hazendonk 2021-03-29 09:12:23 +02:00
parent 61581d1af7
commit 500737dbc7

View File

@ -78,13 +78,8 @@ module.exports = class Crypto {
{
console.log("hex string of key starts with \"00\" and is 514 bytes long, fixing it to be 512 bytes long by stripping leading \"00\"");
hexString = hexString.substr(2);
var base64String = Buffer.from(hexString, 'hex').toString('base64')
return base64String;
}
else
{
return (modPow(base, power, mod)).toBEBuffer().toString('base64');
}
return Buffer.from(hexString, 'hex').toString('base64');
}
static pad(d) {