fix: cast password to string. Closes #149

Number-only passwords were breaking crypto-js
pull/150/head
robinmoisson 2022-11-30 08:59:12 +01:00
rodzic e4dfffb267
commit 158668677d
3 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -65,7 +65,7 @@ function getPassword(positionalArguments) {
exitEarly("Missing password: please provide an argument or set the STATICRYPT_PASSWORD environment variable in the environment or .env file");
}
return positionalArguments[1];
return positionalArguments[1].toString();
}
exports.getPassword = getPassword;

4
package-lock.json wygenerowano
Wyświetl plik

@ -1,12 +1,12 @@
{
"name": "staticrypt",
"version": "2.3.2",
"version": "2.3.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "staticrypt",
"version": "2.3.2",
"version": "2.3.3",
"license": "MIT",
"dependencies": {
"crypto-js": "3.1.9-1",

Wyświetl plik

@ -1,6 +1,6 @@
{
"name": "staticrypt",
"version": "2.3.2",
"version": "2.3.3",
"description": "Based on the [crypto-js](https://github.com/brix/crypto-js) library, StatiCrypt uses AES-256 to encrypt your input with your passphrase and put it in a HTML file with a password prompt that can decrypted in-browser (client side).",
"main": "index.js",
"files": [