mirror of
https://github.com/velocitatem/garlic.git
synced 2026-05-31 16:53:37 +00:00
he attak
This commit is contained in:
@@ -38,7 +38,7 @@ class Garlic {
|
||||
}
|
||||
|
||||
static encode(string) {
|
||||
return btoa(string+this.salt);
|
||||
return btoa(string+(this.salt || ""));
|
||||
}
|
||||
static decodeBase64(root) {
|
||||
for (let i = 0; i < root.childNodes.length; i++) {
|
||||
@@ -61,4 +61,5 @@ class Garlic {
|
||||
}
|
||||
|
||||
|
||||
export default Garlic;
|
||||
|
||||
module.exports = Garlic;
|
||||
|
||||
@@ -1,13 +1,18 @@
|
||||
{
|
||||
"name": "garlic",
|
||||
"version": "1.0.0",
|
||||
"name": "garlic-react",
|
||||
"author": "Daniel Alves Rosel",
|
||||
"version": "1.0.2",
|
||||
"description": "",
|
||||
"main": "garlic.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": ["garlic", "protection"],
|
||||
"keywords": [
|
||||
"garlic",
|
||||
"protection",
|
||||
"privacy",
|
||||
"security"
|
||||
],
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user