mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2024-11-21 21:52:07 +00:00
Remove not needed else statement
Cleanup as per comment
This commit is contained in:
parent
61581d1af7
commit
500737dbc7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user