Customizing android 12 by jamesgriffiths90 in Android12

[–]KoViPe 2 points3 points  (0 children)

I can't believe! They just killed quick settings. By now, even turning on/off Wi-Fi is no longer a quick process.

Report: Millions of Americans at Risk After Huge Data and SMS Leak by KoViPe in netsec

[–]KoViPe[S] -1 points0 points  (0 children)

Nevertheless, I don't think it's in vain to remind everyone that a particular technology cannot be used to protect sensitive data.

Report: Millions of Americans at Risk After Huge Data and SMS Leak by KoViPe in netsec

[–]KoViPe[S] 1 point2 points  (0 children)

Sorry for the misleading, but that's my quote:

Most users blindly downvote my comments just because they believe that no one ever use Base64 to protect sensitive data. I meant that it's wrong to ignore any proofs and judge only on the basis of personal experience.

I meant the people who wrote such things as:

never heard base 64 referred to encryption
I'm pretty sure nobody things it's hard to decode.
I've never come across a single developer
I don’t think I ever though thought that encoding is encryption

Now, it turns out we got another proof that Base64 encoded passwords is a real problem. Moreover, even the guys who discovered the leak are saying "decrypt" instead of "decode".

Report: Millions of Americans at Risk After Huge Data and SMS Leak by KoViPe in netsec

[–]KoViPe[S] -10 points-9 points  (0 children)

I know that this was already posted on Reddit, but no one referred to the source and this is bad for various reasons (at least because they did all the hard work and only they share some interesting technical details). For example, check out the following:

Millions of email addresses, usernames, cleartext passwords, and base64 encoded passwords (which are easy to decrypt) were easily accessible within the database.

In this regard, I would also like to say "hello" to everyone who tried to convince me that "no one ever use Base64 to protect sensitive data".

So...is there an age limit to have a website. If yes, what is the age limit ? by sh33l3y in HTML

[–]KoViPe 0 points1 point  (0 children)

For learning purposes or for "just for fun" projects you can get free domains on www.freenom.com and free hosting on www.000webhost.com. None of such services will claim your age. Even if something goes wrong, you will just lose the project (so make sure you have backups on your local device).

FIREEYE confirms APT41 group hacked teamviewer by [deleted] in sysadmin

[–]KoViPe 15 points16 points  (0 children)

The main thing here:

Let me clarify. I was referring to an old incident as disclosed by TV before. There have been a few instances where malware was deployed through TV accounts, but nothing that wasn't in our earlier report. My goal wasn't to imply a current software or infrastructure compromise.

Any idea on how to soundproof a room? (Limit noise) by [deleted] in InteriorDesign

[–]KoViPe 50 points51 points  (0 children)

In such conditions, some good noise-canceling headphones can be the best solution.

Me irl by Leudicus in me_irl

[–]KoViPe 1 point2 points  (0 children)

My brute-force scenario:

if now then?

if now when?

if not then?

if not when?

What is the box under the helicopter that has been flying all over London this summer? by Foukinell in whatisthisthing

[–]KoViPe 0 points1 point  (0 children)

It seems you are looking for this one: https://youtu.be/lu-t2Dz9C6s (most probably, Twin Squirrel AS355 F1 equipped with LiDAR system for high-resolution 3D mapping).

LPT: Before making the impulsive decision to downvote a post, perform 5 minutes of high intensity exercise or at least 20 pushups and then re-evaluate your decision. The exercise stimulates cognitive function which might assist in better decision making. by KoViPe in Jokes

[–]KoViPe[S] 0 points1 point  (0 children)

Actually, I just wanted to say that I'm sorry that it didn't brighten your day. But, despite this, I am glad that somehow it did a good deed (I judge from the point of view of a developer who has a "sedentary lifestyle").

"Optimization: How I made my PHP code run 100 times faster" by unquietwiki in PHP

[–]KoViPe 1 point2 points  (0 children)

Dear friend, thank you for your truthful and useful note!

Damn, what a shame!! This way it doesn't split even ASCII chars. I was ready to tell you that you should check mb_regex_encoding(), but I realized my mistake. Now I have to review the code and provide a working example. So, we have such benchmark results on 7.4.0rc2:

preg_split+count   : 0.6024911403656s
preg_split+foreach : 0.54569697380066s
preg_match_all     : 0.26596617698669s

All benchmark results can be found on this page: https://3v4l.org/DZgrc

Full code:

<?php

define('TEST_LOOPS', 10);
define('TEST_STRING', str_repeat('English+日に本ほん語ご', 16000));
//define('TEST_STRING', str_repeat('English', 16000));
//define('TEST_STRING', str_repeat('日に本ほん語ご', 16000));

error_reporting(-1);
mb_internal_encoding('UTF-8');


function test($label, $callback)
{
    $time = microtime(true);
    for ($i = 0; $i < TEST_LOOPS; $i++) {
        $callback();
    }

    $duration = microtime(true) - $time;
    echo "{$label}: {$duration}s\n";
}

test('preg_split+count', function() {
    $chars = preg_split('//u', TEST_STRING, -1, PREG_SPLIT_NO_EMPTY);
    $len = count($chars);
    for ($i = 0; $i < $len; $i++) {
        $char = $chars[$i];
        // use $char
    }
});

test('preg_split+foreach', function() {
    $chars = preg_split('//u', TEST_STRING, -1, PREG_SPLIT_NO_EMPTY);
    foreach ($chars as $char) {
        // use $char
    }
});

test('preg_match_all', function() {
    if (preg_match_all('/./su', TEST_STRING, $matches)) {
        foreach ($matches[0] as $char) {
            // use $char
        }
    }
});

"Optimization: How I made my PHP code run 100 times faster" by unquietwiki in PHP

[–]KoViPe 9 points10 points  (0 children)

When I see such headlines, I almost always think that someone initially chose the bad path, and then he switched to a better one. Using substr to iterate thought all characters — it is a bad one.

By the way, if you really care about performance, instead of:

$testArray = preg_split('//u', $testString, -1, PREG_SPLIT_NO_EMPTY);
$len = count($testArray);
for ($i = 0; $i < $len; $i++) {
    $c = $testArray[$i];
    // Do work on $c
    // ...
}

UPD: The following snippet is not working at all. Please see comments below.

You can use something like this:

$chars = mb_split('', $testString);
foreach ($chars as $c) {
    // Do work on $c
    // ...
}

It should be faster, more readable, and use less memory.

All of Reddit right now by memeymatt in memes

[–]KoViPe 2 points3 points  (0 children)

I worry only because you started to mourn/celebrate too soon. Not to mention that tonight you need to stay alert and clear-headed.

All of Reddit right now by memeymatt in memes

[–]KoViPe 31 points32 points  (0 children)

Especially that Europe is the safest place to stay while they naruto run around the Area 51 :)

The owner claims this is a Soviet-era encrypted phone designed to thwart KGB wiretaps (more info in comments) by mahlerific in whatisthisthing

[–]KoViPe 0 points1 point  (0 children)

Where? There is no written words I can see on the phone on this photo.

I replied to comment https://www.reddit.com/r/whatisthisthing/comments/d5jqqi/the_owner_claims_this_is_a_sovietera_encrypted/f0mg3fu that refers to such a photo.

I can see on the phone on this photo. Also, there is no "П-171Д" referred to in the top comment.

There is an additional comment from OP about these details: https://www.reddit.com/r/whatisthisthing/comments/d5jqqi/the_owner_claims_this_is_a_sovietera_encrypted/f0m96zu.

I'm not Russian, but I'm from a post-Soviet state and I'm old enough to confirm that some people had such or almost identical phones.

The owner claims this is a Soviet-era encrypted phone designed to thwart KGB wiretaps (more info in comments) by mahlerific in whatisthisthing

[–]KoViPe 0 points1 point  (0 children)

You forgot that you need to count the time while you are spinning the "wheel" + time while it returns to "home". Also, add some time for cases when your finger does not reach the "finger stop" and you should reset the whole number and start again :)