Re: The RSA encryption algorithm implemented in D, free to be used by anyone

2025-05-29 Thread Murilo via Digitalmars-d-learn
On Thursday, 29 May 2025 at 08:30:39 UTC, Dom DiSc wrote: On Thursday, 29 May 2025 at 01:50:51 UTC, Murilo wrote: I've written a code in D which implements the RSA algorithm, so that others may learn how to do it. Here is the link: You messed up the link (the parentheses are wrong somehow).

Re: The RSA encryption algorithm implemented in D, free to be used by anyone

2025-05-29 Thread Dom DiSc via Digitalmars-d-learn
On Thursday, 29 May 2025 at 01:50:51 UTC, Murilo wrote: I've written a code in D which implements the RSA algorithm, so that others may learn how to do it. Here is the link: You messed up the link (the parentheses are wrong somehow). This works: https://github.com/MuriloMir/RSA-algorithm

The RSA encryption algorithm implemented in D, free to be used by anyone

2025-05-28 Thread Murilo via Digitalmars-d-learn
I've written a code in D which implements the RSA algorithm, so that others may learn how to do it. Here is the link: https://github.com/MuriloMir/RSA-algorithm](https://github.com/MuriloMir/RSA-algorithm

Array!string -> data compression -> Data Encryption -> Hash statement

2023-09-19 Thread Vino via Digitalmars-d-learn
Hi All, We have a requirement as below, and I tried the libraries such as std.digest, crypto, botan etc but no luck, hence request you suggestion's on how to achieve the below requirement. Array!string -> data compression -> Data Encryption -> Hash statement -> st

Re: Encryption

2021-05-17 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 17 May 2021 at 16:54:18 UTC, noid wrote: Hi! I am pretty new on Dlang and I wanted to make a small password manager that used some sort of encryption on a file (for example AES256) and save a password to decrypt it later, so you can copy the password. I haven't done

Re: Encryption

2021-05-17 Thread mw via Digitalmars-d-learn
On Monday, 17 May 2021 at 17:08:41 UTC, noid wrote: On Monday, 17 May 2021 at 17:03:39 UTC, Imperatorn wrote: On Monday, 17 May 2021 at 16:54:18 UTC, noid wrote: Hi! I am pretty new on Dlang and I wanted to make a small password manager that used some sort of encryption on a file (for example

Re: Encryption

2021-05-17 Thread noid via Digitalmars-d-learn
On Monday, 17 May 2021 at 16:59:28 UTC, mw wrote: On Monday, 17 May 2021 at 16:54:18 UTC, noid wrote: Hi! I am pretty new on Dlang and I wanted to make a small password manager that used some sort of encryption on a file (for example AES256) and save a password to decrypt it later, so you can

Re: Encryption

2021-05-17 Thread noid via Digitalmars-d-learn
On Monday, 17 May 2021 at 17:03:39 UTC, Imperatorn wrote: On Monday, 17 May 2021 at 16:54:18 UTC, noid wrote: Hi! I am pretty new on Dlang and I wanted to make a small password manager that used some sort of encryption on a file (for example AES256) and save a password to decrypt it later, so

Re: Encryption

2021-05-17 Thread Imperatorn via Digitalmars-d-learn
On Monday, 17 May 2021 at 16:54:18 UTC, noid wrote: Hi! I am pretty new on Dlang and I wanted to make a small password manager that used some sort of encryption on a file (for example AES256) and save a password to decrypt it later, so you can copy the password. I couldn't find any w

Re: Encryption

2021-05-17 Thread mw via Digitalmars-d-learn
On Monday, 17 May 2021 at 16:54:18 UTC, noid wrote: Hi! I am pretty new on Dlang and I wanted to make a small password manager that used some sort of encryption on a file (for example AES256) and save a password to decrypt it later, so you can copy the password. I couldn't find any w

Encryption

2021-05-17 Thread noid via Digitalmars-d-learn
Hi! I am pretty new on Dlang and I wanted to make a small password manager that used some sort of encryption on a file (for example AES256) and save a password to decrypt it later, so you can copy the password. I couldn't find any way of doing encryption on Dlang, is there a lib that

Re: Question on Password Encryption, using stdlib or third party lib

2019-07-29 Thread 0xFFFFFFFF via Digitalmars-d-learn
On Monday, 29 July 2019 at 14:37:54 UTC, 0x wrote: On a project I was asked to a- Compute SHA-256 of a password b- Do a BigInteger, convert to Hex String c- Encrypt the key using a public key with the following parameters Entropy: I'm given some numbers Modulus: also given long num

Re: Question on Password Encryption, using stdlib or third party lib

2019-07-29 Thread Cym13 via Digitalmars-d-learn
On Monday, 29 July 2019 at 14:37:54 UTC, 0x wrote: On a project I was asked to a- Compute SHA-256 of a password b- Do a BigInteger, convert to Hex String c- Encrypt the key using a public key with the following parameters Entropy: I'm given some numbers Modulus: also given long num

Question on Password Encryption, using stdlib or third party lib

2019-07-29 Thread 0xFFFFFFFF via Digitalmars-d-learn
On a project I was asked to a- Compute SHA-256 of a password b- Do a BigInteger, convert to Hex String c- Encrypt the key using a public key with the following parameters Entropy: I'm given some numbers Modulus: also given long numbers [encrypt using RSA algorithm] So far I'm familiar wit

Public private key encryption using existing key in dlang

2019-02-05 Thread Sudhi via Digitalmars-d-learn
Hi All, I have tried encrypting a message using public key and sending message to client, who decrypts using private key. I have tried with openssl d package. Below is my code. However it always fails in creating the context and exits by throwing exception. Key that i am using is RSA key. P

Re: AES encryption with openssl bindings

2014-04-26 Thread Kagamin via Digitalmars-d-learn
On Friday, 25 April 2014 at 19:06:33 UTC, brad clawsie wrote: My code compiles and fails silently. How do you want it to fail? C code doesn't throw exceptions.

Re: AES encryption with openssl bindings

2014-04-26 Thread hane via Digitalmars-d-learn
AES_set_decrypt_key is needed before AES_decrypt. AES_set_decrypt_key(chunk.ptr, 128, &wctx);

Re: AES encryption with openssl bindings

2014-04-25 Thread bearophile via Digitalmars-d-learn
Justin Whear: brad clawsie: b = cast(ubyte[]) s; Better to use std.string.representation. It doesn't look like you're allocating space for `e` or `d`, e.g. `auto e = new ubyte[](256);`, so those arrays have a length of 0, in which case the encrypt/decrypt functions are just trashing

Re: AES encryption with openssl bindings

2014-04-25 Thread Justin Whear via Digitalmars-d-learn
On Fri, 25 Apr 2014 19:06:31 +, brad clawsie wrote: > hi everyone. > > I'm trying to symmetrically encrypt some text using the openssl > bindings. My code compiles and fails silently. Clearly there is > something very wrong with it - it could be my novice D skills, or my > misuse of the opens

AES encryption with openssl bindings

2014-04-25 Thread brad clawsie via Digitalmars-d-learn
hi everyone. I'm trying to symmetrically encrypt some text using the openssl bindings. My code compiles and fails silently. Clearly there is something very wrong with it - it could be my novice D skills, or my misuse of the openssl binding. auto chunk = new ubyte[](16); foreach(ref x