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

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

Re: Disable dub from checking internet before building

2019-02-27 Thread 0xFFFFFFFF via Digitalmars-d-learn
On Monday, 25 February 2019 at 18:54:03 UTC, Jacob Carlborg wrote: On 2019-02-24 23:51, 0x wrote: How to disable dub from checking internet before building, it's slowing down build whenever it does this. I thought that was fixed [1]. Or is it doing something else? [1]

Re: Disable dub from checking internet before building

2019-02-25 Thread 0xFFFFFFFF via Digitalmars-d-learn
On Monday, 25 February 2019 at 06:29:14 UTC, drug wrote: On 25.02.2019 1:51, 0x wrote: How to disable dub from checking internet before building, it's slowing down build whenever it does this. `--skip-registry=all` let you avoid checking of all dependencies (https://dub.pm/commandline)

Disable dub from checking internet before building

2019-02-24 Thread 0xFFFFFFFF via Digitalmars-d-learn
How to disable dub from checking internet before building, it's slowing down build whenever it does this.

Re: On emulating C++ Namespaces (don't ask why)

2018-05-05 Thread 0xFFFFFFFF via Digitalmars-d
On Friday, 4 May 2018 at 19:19:19 UTC, Manu wrote: On 4 May 2018 at 10:50, 0x via Digitalmars-d <digitalmars-d@puremagic.com> wrote: What am I violating here apart from the truth that our Mr. Walter doesn't like namespaces: interface tlvs { enum tlv { addr };

On emulating C++ Namespaces (don't ask why)

2018-05-04 Thread 0xFFFFFFFF via Digitalmars-d
What am I violating here apart from the truth that our Mr. Walter doesn't like namespaces: interface tlvs { enum tlv { addr }; static: void header(); } Is this cool? Thanks

Re: State of D: The survey is killing man, way too much

2018-03-04 Thread 0xFFFFFFFF via Digitalmars-d
On Saturday, 3 March 2018 at 19:46:38 UTC, Jonathan Marler wrote: On Saturday, 3 March 2018 at 17:42:25 UTC, David Gileadi wrote: On 3/3/18 8:08 AM, 0x wrote: The D survey is killing maan! Those are lots of questions in there If I ever get hold of the people behind it... Is it a

Re: State of D: The survey is killing man, way too much

2018-03-04 Thread 0xFFFFFFFF via Digitalmars-d
On Saturday, 3 March 2018 at 17:42:25 UTC, David Gileadi wrote: On 3/3/18 8:08 AM, 0x wrote: The D survey is killing maan! Those are lots of questions in there If I ever get hold of the people behind it... Is it a coincidence that your user handle is "negative one"? ;) Oh,

State of D: The survey is killing man, way too much

2018-03-03 Thread 0xFFFFFFFF via Digitalmars-d
The D survey is killing maan! Those are lots of questions in there If I ever get hold of the people behind it...

Re: How do you get comfortable with Dlang.org's Forum?

2018-03-01 Thread 0xFFFFFFFF via Digitalmars-d
On Friday, 23 February 2018 at 13:47:16 UTC, biocyberman wrote: Want to learn something from you guys. forum.dlang.org is by far the biggest gathering point for Dlang users. So, even though I wanted to get away with using stackoverflow.com, I have to come back here. However, to me it easier

Re: C++ launched its community survey, too

2018-02-28 Thread 0xFFFFFFFF via Digitalmars-d
On Tuesday, 27 February 2018 at 19:03:54 UTC, Mark wrote: On Tuesday, 27 February 2018 at 17:33:52 UTC, 12345swordy wrote: On Tuesday, 27 February 2018 at 15:52:15 UTC, Andrei Alexandrescu wrote: https://isocpp.org/blog/2018/02/new-cpp-foundation-developer-survey-lite-2018-02 Andrei I have

Re: C++ std::string_view equivalent in D?

2018-02-21 Thread 0xFFFFFFFF via Digitalmars-d-learn
On Wednesday, 21 February 2018 at 10:24:39 UTC, ketmar wrote: 0x wrote: [...] and that is exactly what slices are for! ;-) you are probably better to use `const(char)[]`, tho. like this: // don't store `s`, as it's contents may change after exiting of `myfunc` // (this

Re: C++ std::string_view equivalent in D?

2018-02-21 Thread 0xFFFFFFFF via Digitalmars-d-learn
On Wednesday, 21 February 2018 at 09:21:58 UTC, 0x wrote: What is the equivalent of C++17 std::string_view (an object that can refer to a constant contiguous sequence of char-like objects with the first element of the sequence at position zero) in D? PS: I'm getting back to D after

Re: C++ std::string_view equivalent in D?

2018-02-21 Thread 0xFFFFFFFF via Digitalmars-d-learn
On Wednesday, 21 February 2018 at 10:22:56 UTC, rikki cattermole wrote: On 21/02/2018 10:17 AM, 0x wrote: On Wednesday, 21 February 2018 at 09:21:58 UTC, 0x wrote: What is the equivalent of C++17 std::string_view (an object that can refer to a constant contiguous sequence of

Re: C++ std::string_view equivalent in D?

2018-02-21 Thread 0xFFFFFFFF via Digitalmars-d-learn
On Wednesday, 21 February 2018 at 10:23:23 UTC, Jonathan M Davis wrote: As I said in my previous response, read this article: https://dlang.org/articles/d-array-article.html Sorry, I didn't see this before I replied. Had I, I wouldn't have done that. string sv = "some string"; then _zero_

C++ std::string_view equivalent in D?

2018-02-21 Thread 0xFFFFFFFF via Digitalmars-d-learn
On Wednesday, 21 February 2018 at 09:21:58 UTC, 0x wrote: What is the equivalent of C++17 std::string_view (an object that can refer to a constant contiguous sequence of char-like objects with the first element of the sequence at position zero) in D? PS: I'm getting back to D after

C++ std::string_view equivalent in D?

2018-02-21 Thread 0xFFFFFFFF via Digitalmars-d-learn
What is the equivalent of C++17 std::string_view (an object that can refer to a constant contiguous sequence of char-like objects with the first element of the sequence at position zero) in D? PS: I'm getting back to D after years (since DMD 1 days). A lot changes since v1.0.