JavaScript implementation of modern UNIX crypt(3)? [closed] - javascript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Is there a pure JavaScript library to encrypt passwords like the UNIX crypt(3), supporting modern encryption methods like SHA-256 or SHA-512? (e.g., crypt('password', '$6$salt') like in the crypt module of Python 3) In addition, I would also need this to run in the browser without access to the underlying libc crypt() implementation.
Background
I need to open Linux server accounts to people I can only communicate with via email. I normally ask Linux and MacOSX users to encyrpt a password on the terminal command line and send the encrypted one to me; I do not currently have a solution for Windows users.
Thus I would like to write a small HTML page with a text box + JS code that encrypts the text entered as a SHA-512 password. Then users could simply copy+paste the encrypted password in an email and that's it. No cleartext password would ever leave their computer.
Prior art
I see this question has already been answered here and here, but:
The first link does not really provide an answer, but advice that implementing JS encryption for client/server communication is not a good idea. This is not my use case.
The solutions in the second link are not useful, as they either require access to the underlying libC crypt() implementation (via FFI), or they only provide the traditional DES encryption.

Related

Need to encrypt data sent to browser and decrypt with JavaScript [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
My project is sending PHI/PII data to the browser and I need to be to prevent someone from seeing it. How would I encrypt with C# and then decrypt with JavaScript? I cannot user CryptoJS as it is not allowed here. Even though the connection is an SSL connection I am being told I need to encrypt the data. Any ideas?
There is a difference between encrypting and encoding. I would also recommend Base64 as the encoding mechanism, but for data encryption you should really be relying on the SSL connection to transport the encoded data to/from the server as it provides 1024-bit or 2048-bit encryption automatically during transit.
How is the transport being accomplished? What mechanism is being used to send/receive the data? If you're using standard HTTP with GET then the data will be vulnerable at some point during the transaction and should never be used with sensitive data, as the data can be cached and remain in the browser history.

Automated javascript and html testing over multiple pages [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
We have a webshop and we sell lots of items.
Our checkout process consists of 4 different pages where the user has to input their address, select a delivery method and confirm their order on different pages/urls. Each of those pages relies on communication with the server and lots of javascript / jquery.
Some of our users have reported problems at some parts of those pages. We suspect it could be a combination of OS/browser that can't understand a part of our javascript code.
Is there any way to automate testing of a checkout process of 4 different consecutive pages, each requiring user input?
We would like the testing environment to test on different brosers/browser versions.
We also had a customer recently that had an antivirus program that would change the urls of our js source files, is there any way to capture cases like that by testing?
Sounds like you might use E2E testing, using Protractor/Selenium.
It's basically about writing user behaviour, and the browser driver does it instead of user. You can write what should happen on the page and if any of these conditions is not met, it will be included in the post-test report. You can configure it to use whatever browser driver you like.
I suggest you to take a look at Selenium. The main purpose of it is to automate browsers actions.

Can JavaScript be the only language used in a project? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I started learning JavaScript a while back and it didn't take long for me to realize that JS relies heavily on HTML/CSS (there isn't even a way to get an input from the user using just JS unless you use prompt or HTML).
However, I love the language itself and I was wondering if there is any way to have a project run on JUST JS. (Or if there is another language that's language is as beautiful and simple as JavaScript but still has the practicality of Java or C++. I find Python/Ruby's syntax to be odd, sorry).
I know this isn't the usual question here at Stack Overflow, but I'm somewhat new to this and there's no other clear, definitive answer.
You could look at Node.js. Which is a backend server framework that uses Javascript as the language.
But if you want to display user interface code to browsers, you still can't get away from HTML and Javascript.
If you want to interact with an user in a browser, you must need html, or prompts as you said otherwise the user have nothing to do there :).
And If you are looking a way to execute javascript at server side
Look at, node.js that take advantage of V8 JavaScript Engine
Another option is io.js
With Node.js, you can write a project beyond web.

Looking for a browser based webcam streaming and capture lib/framework [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
What I want to do is have control over the streams so I can send them wherever I want, have it interface w/a mic and cam, and the ability to capture and record them. At this point I don't have any specific specs or limitations. It will be used in a commercial project so the license must allow for that. Free and OSS is preferably, but commercial and proprietary is not out of the question if it's worth it.
I don't see html5 as a viable solution at this point so I'm assuming it's going to rely on flash which is fine, but I do not know actionscript. I'm not opposed to learning it, and assume I could pick it up fine within a week, but keep that in mind. If I have to build something myself from the actionscript libraries (I assume they provide enough functionality) I can do so, but I'm hoping for a quicker solution than that.
Aside from the flash applet, you would have to integrate it with a server running Flash Media Server, SmartFox Server, etc
Flash has had webcam support built in for awhile. Checkout their help pages at: Adobe
Check out this question for more links too:
Test Webcam via Flash

Get browser bookmarks via javascript [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
we want to provide an online bookmark service to our customers. Therefor it would be nice to provide also a function to store local bookmarks into our online tool. This shouldn't be done automatically - the user should confirm this action (only in case someone thinks I want to spy users data).
I'm looking for a while now, but I found only that there is no solution, because it's a security risk. Is there a way or already a tool for such a functionality in Javascript?
Regards
This is completely impossible.
You need to write a browser addon.
Is there a way or already a tool for such a functionality in Javascript?
Nope, definitely not. Maybe for browser extensions - if it's possible even for them.
No there isn't any solution to do this via javascript. The only solution I can think of is to use a Java Applet to read the client's computer and look for the bookmark.
Another way is you can ask them to export their favorites to a file and upload to your website.
Prompt the user to upload the bookmarks file: http://productforums.google.com/forum/#!topic/chrome/i1r3CgqvgCI

Categories