Comments (5)
Yes that was an addition that i made to run the makefile on my system (fedora) where by default backslash escapes interpretation is disabled. It can be safely removed.
from jsencrypt.
I would like to move this library to use Grunt, so the makefile should probably go away in the future.
from jsencrypt.
Hey,
imho, this newline is not needed there. A fix would be to add a newline at the end of file src/jsencrpyt.js and to make the line in the Makefile simply @echo "exports.JSEncrypt = JSEncrypt;" >> bin/jsencrypt.js. Result looks like before, and hey, it gets minimized in the end ;)
It would simplify building that nice lib as well.
index 4b409f1..f4436ac 100644
--- a/makefile
+++ b/makefile
@@ -33,7 +33,7 @@ js: ${files}
@echo "var JSEncryptExports = {};" > bin/jsencrypt.js
@echo "(function(exports) {" >> bin/jsencrypt.js
@cat $^ >> bin/jsencrypt.js
- @echo -e "\nexports.JSEncrypt = JSEncrypt;" >> bin/jsencrypt.js
+ @echo "exports.JSEncrypt = JSEncrypt;" >> bin/jsencrypt.js
@echo "})(JSEncryptExports);" >> bin/jsencrypt.js
@echo "var JSEncrypt = JSEncryptExports.JSEncrypt;" >> bin/jsencrypt.js
@echo "Generating compressed jsencrypt.min.js file"
diff --git a/src/jsencrypt.js b/src/jsencrypt.js
index 14ff1de..a98f59c 100644
--- a/src/jsencrypt.js
+++ b/src/jsencrypt.js
@@ -474,4 +474,5 @@ JSEncrypt.prototype.getPublicKey = function() {
JSEncrypt.prototype.getPublicKeyB64 = function() {
// Return the private representation of this key.
return this.getKey().getPublicBaseKeyB64();
-};
\ No newline at end of file
+};
+
Regards
Joachim
from jsencrypt.
If you put in a pull request for ^, I will gladly approve and merge. Thanks.
from jsencrypt.
This is now fixed. Thanks @shing19m !
from jsencrypt.
Related Issues (20)
- Module not found: Error: Can't resolve './lib/jsbn/base64' in 'C:\Users\jackdu\Documents\Project\lowcode-admin\node_modules\jsencrypt\lib' HOT 2
- Decrypted result has wrong encoding HOT 1
- window is not defined in nuxtjs v3 HOT 8
- Suggest to add judgment when string too long
- Front-end performed RSA signature on the HMAC using SHA256, but the length was incorrect, causing the server to fail to verify it. HOT 1
- CVE-2012-5883
- An error occurred when using jsencrypt in a lower version of Chrome
- encryption returning false HOT 3
- Support node.js ? ReferenceError: window is not defined HOT 6
- Problem after upgrade to latest version from 3.2.1 on verify method
- Why is the result of each encryption different from the same content?
- [REQUEST] remove browser dependency ?
- Can the ciphertext length of JSENCRYPT 3.3.2 be controlled
- nest.js jsencrypt does not work with error `window is not defined`
- Content-Security-Policy blocked jsencryt.min.js file version 3.0.0-rc.2
- Need a fix for CVE-2023-46809 HOT 3
- Problem to decrypt in NodeJs with crypto HOT 1
- How should Java verify your generated signature HOT 1
- How to decrypt Blob、ArrayBuffer ?
- yahoo.js文件中的yui代码存在安全漏洞,是否使用最新版本的代码 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsencrypt.