0
submitted 2 days ago by trymeout@lemmy.world to c/bitcoin@lemmy.ml

When playing around with these tools (Which I know you should not use for your phrase to store funds), it seems to me the entropy field which can be made visible by checking off the "Show entropy details" box in the BIP39 tool and the master secret field in the SLIP39 tool are the same. They are both hexadecimal values and can be 128 or 256 bits.

Is the SLIP39 master secret also generated by entropy when generating a SLIP 39 Shamir Backup? How is the master secret generated?

I found this article explaining step by step how a BIP39 phrase is generated and it starts with entropy, wouldn't SLIP39 be the same by starting with entropy?

https://medium.com/coinmonks/mnemonic-generation-bip39-simply-explained-e9ac18db9477

https://iancoleman.io/bip39/ https://iancoleman.io/slip39/

0
submitted 2 days ago by trymeout@lemmy.world to c/crypto@lemmy.ml

When playing around with these tools (Which I know you should not use for your phrase to store funds), it seems to me the entropy field which can be made visible by checking off the "Show entropy details" box in the BIP39 tool and the master secret field in the SLIP39 tool are the same. They are both hexadecimal values and can be 128 or 256 bits.

Is the SLIP39 master secret also generated by entropy when generating a SLIP 39 Shamir Backup? How is the master secret generated?

I found this article explaining step by step how a BIP39 phrase is generated and it starts with entropy, wouldn't SLIP39 be the same by starting with entropy?

https://medium.com/coinmonks/mnemonic-generation-bip39-simply-explained-e9ac18db9477

https://iancoleman.io/bip39/ https://iancoleman.io/slip39/

1

When playing around with these tools (Which I know you should not use for your phrase to store funds), it seems to me the entropy field which can be made visible by checking off the "Show entropy details" box in the BIP39 tool and the master secret field in the SLIP39 tool are the same. They are both hexadecimal values and can be 128 or 256 bits.

Is the SLIP39 master secret also generated by entropy when generating a SLIP 39 Shamir Backup? How is the master secret generated?

I found this article explaining step by step how a BIP39 phrase is generated and it starts with entropy, wouldn't SLIP39 be the same by starting with entropy?

https://medium.com/coinmonks/mnemonic-generation-bip39-simply-explained-e9ac18db9477

https://iancoleman.io/bip39/ https://iancoleman.io/slip39/

1
submitted 2 months ago by trymeout@lemmy.world to c/php@lemmy.ml

cross-posted from: https://lemmy.world/post/48266338

I am learning how to use Symfony Mailer and am a bit lost on the encrypting message section.

This is my simple code below which works in sending the email.

<?php

require 'vendor/autoload.php';

const FROM = 'me@example.com';

const TO = 'example@email.com';

const SUBJECT = 'My Subject';

const MESSAGE = 'Hello World';

const DSN = 'smtp://localhost:1025';

$transport = \Symfony\Component\Mailer\Transport::fromDsn(DSN);

$mailer = new \Symfony\Component\Mailer\Mailer($transport);

$email = (new \Symfony\Component\Mime\Email())
    ->from(FROM)
    ->to(TO)
    ->subject(SUBJECT)
    ->text(MESSAGE);

$encrypter = new \Symfony\Component\Mime\Crypto\SMimeEncrypter('my-certificate.crt');
$encryptedEmail = $encrypter->encrypt($email);

try {
    $mailer->send($encryptedEmail);
} catch (\Symfony\Component\Mailer\Exception\TransportExceptionInterface $error) {
    echo 'Unable to send email' . PHP_EOL;
}

And this is how I generated the certificate and key...

openssl genrsa -aes256 -out my-certificate.key 4096
openssl req -new -x509 -days 29220 -key my-certificate.key -out my-certificate.crt

I am able to receive the email using SMTP tools like Mailpit.

My two questions are...

  1. My emails are encrypted using the certificate, but shouldn't it be done using PGP?
  2. How do I decrypt the email with SMTP testing tool or any online or CLI tool? I tried to decrypt the email and could not decrypt it even though I have all of the keys.
-1
submitted 2 months ago by trymeout@lemmy.world to c/php@programming.dev

cross-posted from: https://lemmy.world/post/48266338

I am learning how to use Symfony Mailer and am a bit lost on the encrypting message section.

This is my simple code below which works in sending the email.

<?php

require 'vendor/autoload.php';

const FROM = 'me@example.com';

const TO = 'example@email.com';

const SUBJECT = 'My Subject';

const MESSAGE = 'Hello World';

const DSN = 'smtp://localhost:1025';

$transport = \Symfony\Component\Mailer\Transport::fromDsn(DSN);

$mailer = new \Symfony\Component\Mailer\Mailer($transport);

$email = (new \Symfony\Component\Mime\Email())
    ->from(FROM)
    ->to(TO)
    ->subject(SUBJECT)
    ->text(MESSAGE);

$encrypter = new \Symfony\Component\Mime\Crypto\SMimeEncrypter('my-certificate.crt');
$encryptedEmail = $encrypter->encrypt($email);

try {
    $mailer->send($encryptedEmail);
} catch (\Symfony\Component\Mailer\Exception\TransportExceptionInterface $error) {
    echo 'Unable to send email' . PHP_EOL;
}

And this is how I generated the certificate and key...

openssl genrsa -aes256 -out my-certificate.key 4096
openssl req -new -x509 -days 29220 -key my-certificate.key -out my-certificate.crt

I am able to receive the email using SMTP tools like Mailpit.

My two questions are...

  1. My emails are encrypted using the certificate, but shouldn't it be done using PGP?
  2. How do I decrypt the email with SMTP testing tool or any online or CLI tool? I tried to decrypt the email and could not decrypt it even though I have all of the keys.
-1

I am learning how to use Symfony Mailer and am a bit lost on the encrypting message section.

This is my simple code below which works in sending the email.

<?php

require 'vendor/autoload.php';

const FROM = 'me@example.com';

const TO = 'example@email.com';

const SUBJECT = 'My Subject';

const MESSAGE = 'Hello World';

const DSN = 'smtp://localhost:1025';

$transport = \Symfony\Component\Mailer\Transport::fromDsn(DSN);

$mailer = new \Symfony\Component\Mailer\Mailer($transport);

$email = (new \Symfony\Component\Mime\Email())
    ->from(FROM)
    ->to(TO)
    ->subject(SUBJECT)
    ->text(MESSAGE);

$encrypter = new \Symfony\Component\Mime\Crypto\SMimeEncrypter('my-certificate.crt');
$encryptedEmail = $encrypter->encrypt($email);

try {
    $mailer->send($encryptedEmail);
} catch (\Symfony\Component\Mailer\Exception\TransportExceptionInterface $error) {
    echo 'Unable to send email' . PHP_EOL;
}

And this is how I generated the certificate and key...

openssl genrsa -aes256 -out my-certificate.key 4096
openssl req -new -x509 -days 29220 -key my-certificate.key -out my-certificate.crt

I am able to receive the email using SMTP tools like Mailpit.

My two questions are...

  1. My emails are encrypted using the certificate, but shouldn't it be done using PGP?
  2. How do I decrypt the email with SMTP testing tool or any online or CLI tool? I tried to decrypt the email and could not decrypt it even though I have all of the keys.
2

cross-posted from: https://lemmy.world/post/48011911

I found this very promising app that looks like it can be an alternative to Ferdium, Rambox, Franz, Hamsket.

WebSpace is an app that brings websites and web apps together in one organized, streamlined interface. Any web app you can think off can be used in WebSpace in its own web instance instead of your main web browser. Basically it is a web browser but for web apps you use often and may want running in the background.

For use degoogled users who use website, web apps, PWAs over native apps, this makes using these services much easer.

WebSpace also adds many privacy features such as ad blocking and filtering, cookie isolation, and more.

Also it is written in Flutter! Meaning this could become available on desktop in the future! One app, one codebase for all major OSes!

Check it out and contribute!

3

cross-posted from: https://lemmy.world/post/48011911

I found this very promising app that looks like it can be an alternative to Ferdium, Rambox, Franz, Hamsket.

WebSpace is an app that brings websites and web apps together in one organized, streamlined interface. Any web app you can think off can be used in WebSpace in its own web instance instead of your main web browser. Basically it is a web browser but for web apps you use often and may want running in the background.

For use degoogled users who use website, web apps, PWAs over native apps, this makes using these services much easer.

WebSpace also adds many privacy features such as ad blocking and filtering, cookie isolation, and more.

Also it is written in Flutter! Meaning this could become available on desktop in the future! One app, one codebase for all major OSes!

Check it out and contribute!

9
submitted 2 months ago by trymeout@lemmy.world to c/android@lemmy.ml

cross-posted from: https://lemmy.world/post/48011911

I found this very promising app that looks like it can be an alternative to Ferdium, Rambox, Franz, Hamsket.

WebSpace is an app that brings websites and web apps together in one organized, streamlined interface. Any web app you can think off can be used in WebSpace in its own web instance instead of your main web browser. Basically it is a web browser but for web apps you use often and may want running in the background.

For use degoogled users who use website, web apps, PWAs over native apps, this makes using these services much easer.

WebSpace also adds many privacy features such as ad blocking and filtering, cookie isolation, and more.

Also it is written in Flutter! Meaning this could become available on desktop in the future! One app, one codebase for all major OSes!

Check it out and contribute!

23
submitted 2 months ago by trymeout@lemmy.world to c/opensource@lemmy.ml

I found this very promising app that looks like it can be an alternative to Ferdium, Rambox, Franz, Hamsket.

WebSpace is an app that brings websites and web apps together in one organized, streamlined interface. Any web app you can think off can be used in WebSpace in its own web instance instead of your main web browser. Basically it is a web browser but for web apps you use often and may want running in the background.

For use degoogled users who use website, web apps, PWAs over native apps, this makes using these services much easer.

WebSpace also adds many privacy features such as ad blocking and filtering, cookie isolation, and more.

Also it is written in Flutter! Meaning this could become available on desktop in the future! One app, one codebase for all major OSes!

Check it out and contribute!

[-] trymeout@lemmy.world 8 points 2 months ago* (last edited 2 months ago)

If it cannot detect the glasses or if they are disconnected, it will restore the other displays. I have been using a similar version of the script for about a year that was written in Bash https://lemmy.world/post/29660071, I decided to rewrite it in Nushell since I prefer Nushell over Bash.

Improvements are welcomed as this code is free for all to modify, share, and use.

6
submitted 2 months ago* (last edited 2 months ago) by trymeout@lemmy.world to c/nushell@programming.dev

To be able to run Nushell scripts from your File Manager and have the terminal window of the running script not close when the script is finished executing or if the scripts exits, you can use these instructions to achieve this.

This example is on Linux Mint using Nemo as a file manager and GNOME Terminal as a terminal app.

  • Create the following script on your system and store the file where ever you like...

run-in-terminal.nu

def run-in-terminal [code: string] {
    # Using GNOME Terminal
    gnome-terminal -- nu -c ($code)
}

# The Nushell code that runs in the terminal
def get-terminal-code [script: string] {
    return $"
        try {
            nu ($script)

            print ''
            print ''
            print ''
            print 'Script finished executing'
        } catch {
            print ''
            print ''
            print ''
            print 'Script failed executing'
        }

        print ''

        # Must press enter to close terminal window
        input 'Press Enter to exit'
    "
}

def main [script:string] {
    run-in-terminal (get-terminal-code $script)
}
  • Create the Nemo action file and in the file, replace /path/to/run-in-terminal.nu with the path to the run-in-terminal.nu file...

~/.local/share/nemo/actions/nushell.nemo_action

[Nemo Action]
Name=Run in Terminal
Comment=Execute script in Terminal
Exec=nu /path/to/run-in-terminal.nu %F
Icon-Name=terminal
Selection=Single
Extensions=nu;

Now simply right click on any Nushell script file (.nu) in Nemo and you will see an option Run In Terminal.

7

cross-posted from: https://lemmy.world/post/48010802

I created a simple Nushell script that will always disable the default/internal monitor(s) on your laptop or external display when using AR glasses. I find this useful for when using AR glasses such as the XReal One which allows you to change the mode from regular mode to ultra-wide mode and when doing this, it will act as your unplugging the XReal ones and plugging in XReal one again in a new mode, causing the other display to become enabled.

To keep the laptop display always off, weather the laptop lid is either closed or open, this simple Nushell script will always disable the screen every X seconds (You can change it by changing the wait constant)

Simply copy this script and create a new Nushell script such as disable-displays.nu, add it to your startup applications with the command of nu /path/to/disable-displays.nu and it will run in the background. You will need to run xrandr command with all of your displays enabled to get the names of the displays and change the constants values in the script accordingly.

NOTE: This script may not work with a full Wayland setup and may only work on X11.

Enjoy

# RUN xrandr TO GET THE NAMES OF THE DISPLAYS AND SET THE VARIABLES TO THESE NAMES
const ar_glasses_display = 'USB-C-0'
const displays = [
    'eDP',
    'HDMI-0'
]

const wait = 5

def is-ar-glasses-connected [] {
    return (xrandr | str contains $"($ar_glasses_display) connected")
}

def disable-display [display: string] {
    xrandr --output $display --off
}

def enable-display [display: string] {
    xrandr --output $display --auto
}

loop {
    if (is-ar-glasses-connected) {
        for current_display in $displays {
            disable-display $current_display
        }
    } else {
        for current_display in $displays {
            enable-display $current_display
        }
    }

    sleep ($wait * 1sec)
}
[-] trymeout@lemmy.world 3 points 2 years ago

VSCodium > VSCode

[-] trymeout@lemmy.world 6 points 2 years ago

https://github.com/AgoraDesk-LocalMonero/agoradesk-app-foss/issues/296

Please upvote this issue if you want to see all the source code for AgoraDesk/LocalMonero be released!

[-] trymeout@lemmy.world 19 points 2 years ago* (last edited 2 years ago)

Please add the crypto addresses to the site sidebar under donations. You also may want to consider accepting BTC, BCH and LTC. Glad your accepting XMR though for private donations.

[-] trymeout@lemmy.world 58 points 2 years ago* (last edited 2 years ago)

Discord is the worst. Requires a phone number, does not allow email aliases and logs your chats.

Matrix and SimpleX is way better

[-] trymeout@lemmy.world 4 points 2 years ago

I wish session remade their client with flutter and made it feature rich like Element/Jami/SimpleX.

I like how sessions handles users IDs as seed phrases and also wishes sessions will allow you to manage multiple user IDs from a single seed phrase.

Nostr FTW!

[-] trymeout@lemmy.world 6 points 2 years ago

Otherwise -d does nothing different to the container, just runs the container "in the background" so you can continue entering other commands in the terminal without having to open another terminal tab or terminal window?

[-] trymeout@lemmy.world 24 points 3 years ago

Karma system was a horrible feature on reddit.

[-] trymeout@lemmy.world 4 points 3 years ago

To my understanding vertical scaling has limits which is the servers limitations as horizontal scaling if infinite since unlimited servers can be added

[-] trymeout@lemmy.world 9 points 3 years ago

What country is lemmy.world hosted in?

[-] trymeout@lemmy.world 7 points 3 years ago

Could Threads essentially cause a kinda DDOS attack onto other instances or bloating other instances with data?

[-] trymeout@lemmy.world 3 points 3 years ago* (last edited 3 years ago)
view more: next ›

trymeout

0 post score
0 comment score
joined 3 years ago