Posts by Elaine • 2,770 points
79 posts
-
1
votes1
answer396
viewsQ: Pseudo file upload with Javascript
My intention is to make a pseudo-upload of any file, when I say pseudo I refer to the fact that: it should not go to the server.. and turn it into base64 Like, I select an X image but instead of it…
javascriptasked Elaine 2,770 -
1
votes1
answer45
viewsQ: Variable does not call function, Webworker and Scope functions
I have serious problems, I have a Webworker that imports a file, but when calling the function with the variable does not work. See: importScripts( './libs/RSA.js' ); self.onmessage = function (e) {…
javascriptasked Elaine 2,770 -
0
votes1
answer248
viewsQ: How to convert this derivation code into PHP for Javascript
I have a beautiful derivation function written in PHP but I would like to pass it to Javascript and as it has a lot of "sum" I do not know how to transform it, someone can help me? function…
-
1
votes3
answers146
viewsQ: Modification of Javascript on websites
How far can an end-user modify Javascript and manipulate everything? As far as I know, it’s literally everything, but if it is, is there a way to avoid it? Either prevent or simply prevent JS…
-
3
votes2
answers117
viewsQ: Use multiple names with distinct functions in a variable
See these variable statements: var level = 0; var atual_sequence = 0; I could put them together like this?: var level, atual_sequence = 0; One would affect the functionality of the other?…
-
2
votes1
answer1555
viewsQ: Wait for pending runs to finish to proceed, Javascript
That was the most practical example I could find.. is an example where the server sends 2 messages (or more) in a row and at "the same time", it does not check if there is something running, in case…
-
2
votes2
answers2350
viewsQ: Run code only after setTimeout runs
I want the code to run normally, but when the timeout get the code will wait it perform to proceed, like: Normal code: setTimeout(function(){ alert("Hello"); }, 3000); // OPA UM TIMEOUT…
javascriptasked Elaine 2,770 -
2
votes1
answer787
viewsQ: Execution order is not followed
I am using this library to perform Indexeddb functions more easily: Dexie But the code does not in any way follow the execution order and that makes my script does not work. Example This code is…
-
4
votes2
answers99
viewsQ: Preset in Javascript function parameters
Is it possible to make parameter presets in Javascript functions? Something like: function teste(oi = "ola", type = 1) { To predefine variables if they are not defined?…
-
2
votes2
answers2748
viewsQ: Group json data by a given object
I have a list: var dataString='[ { "category" : "Search Engines", "hits" : 5, "bytes" : 50189 }, { "category" : "Content Server", "hits" : 1, "bytes" : 17308 }, { "category" : "Content Server",…
-
5
votes2
answers520
viewsQ: Check where the POST came from
Is there any way to limit the sending of POST forms by third parties to my website? Deny everyone, like there’s the URL that does it like a robot, but I wanted to inhibit, it’s like? When I say…
-
0
votes1
answer181
viewsQ: Interpretation, Mtproto Encryption
Can someone help me interpret this part? from Mtproto Before a message (or a concatenated message) that is being transmitted on a network using a transport protocol, which is encrypted in a certain…
-
4
votes2
answers153
viewsQ: Chosen-ciphertext Attack what’s it like?
I’m reading about CCA but I can’t understand in any site I’m looking for, how this attack works and how to possibly avoid it?
cryptographyasked Elaine 2,770 -
9
votes2
answers1032
viewsQ: Attacks of data interception
What are known data interception attacks, type Man-in-the-Middle?
-
4
votes1
answer445
viewsQ: Calculate mod in php
How can I calculate 15,625 mod 23 only in PHP? I searched on google and other sources and did not succeed in my search, could give me more information?
-
5
votes1
answer741
viewsQ: How Telegram Encryption Works
I’m analyzing that Telegram uses encryption end-to-end and I’m trying to understand how they get such a fact, they make everything available documented but my English is not so good and Google…
-
4
votes1
answer134
viewsQ: Transmit information without going through the server
The question is simple and fast, there is some way to send data without the need for them to pass through a server, for example to send data from a form that user A filled out to user B in real…
-
15
votes2
answers500
viewsQ: Does data received from HTTPS come encrypted?
If I install certificate SSL and use HTTPS on my website, for example, I run a form POST, form data arrives encrypted to the server? If yes, how to decrypt using PHP?.…
-
7
votes2
answers2435
viewsQ: What is end-to-end encryption? How to apply it?
According to everything I researched and with the help of @Maniero I came to the conclusion: "Cryptography end-to-end is done when only the connection points have access to the key that will decrypt…
-
16
votes3
answers2621
viewsQ: What is end-to-end encryption
I hear a lot about this cryptography business end-to-end but I can’t quite understand why it’s called the "safest option for privacy". I have doubts and enumerated them, see: What is? How it works?…
-
6
votes2
answers8986
viewsQ: Function to mark/deselect checkbox, jquery
How can I check/uncheck checkbox in jQuery by clicking a button and at the same time giving an Alert reporting whether it has been checked or unchecked..
-
3
votes1
answer508
viewsQ: Hide div when input on Focus, css
How can I hide my div when the input is in Focus? I used this Cod and it didn’t work for me .A:focus .B { display: inline-block !important; }
-
5
votes3
answers12621
viewsQ: How to remove specific words with javascript
How can I remove specific page title values? Title: STACKOVERFLOW REMOVE: STACK RESULT: OVERFLOW
-
3
votes0
answers1429
viewsQ: Artificial Intelligence using PHP and Mysql
I am looking for information on artificial intelligence using Mysql and PHP only, I did not find much information that would guide me correctly, I want to develop a small chat with virtual…
-
5
votes2
answers2312
viewsQ: Scan the machine/server using php
I am creating a system report, I honestly did not know that PHP did this, I researched and I found that I did, but I found no useful explanation, I just found PHP SYS INFO as a reference. When I say…
-
2
votes2
answers1475
viewsQ: Store var_dump in a variable
I need to show the array and store it in a variable, the functions I know that do that are var_dump and print_r, but they do not store in string, they already dao echo. What function to use?…
-
4
votes2
answers125
viewsQ: Give Alert after typing the word "pass"
How can I run an Alert after the user writes "stack". For example, stack (without being an input, just writing) it gives an Alert. I would have to use keypress and which to check the keys that are…
-
1
votes2
answers939
viewsQ: Match jQuery function, how to get the cards
How can I get my hands on the match function? console.log($("COMMANDO database -> run []").match(/COMMAND\S*(.*)\S*->\S*(.*)/g)[0]); In theory I would have to get database, run and what’s…
-
4
votes1
answer264
viewsQ: preg_replace for preg_replace_callback
How to make the function transition preg_replace to the preg_replace_callback in this case? I use arrays why in the future I can add continuation.. preg_replace( array(…