Originally posted by uid313
View Post
Announcement
Collapse
No announcement yet.
Google Announces The Tink Crypto Library
Collapse
X
-
- Likes 3
-
Originally posted by computerquip View Post
Rust doesn't magically protect you against every possible memory-concerned bug. It helps with some edge cases at compile-time. Note there are similar tools that provide similar features to C and C++ at compile-time and run-time, it's just a matter of using them. Simply because you don't understand how to use those tools or you're ignorant of the vulnerabilities that are possible in Rust, doesn't suddenly make Rust a more viable solution.
I couldn't even write a secure Hello World program.
Also not only memory-concerned bugs, but also other bugs.
Comment
-
Originally posted by uid313 View PostC is notoriously difficult to code in.Originally posted by uid313 View PostI couldn't even write a secure Hello World program.Originally posted by uid313 View PostSure, you can write safe code in C. For example, Daniel J. Bernstein could do it.
But for far too many people, it is far too easy to shoot yourself in the foot with C.
- Likes 1
Comment
-
Originally posted by uid313 View PostI couldn't even write a secure Hello World program.
Code:#include <stdio.h> int retval; int main() { retval=puts("Hello World!"); return 0; }
Comment
-
Originally posted by tildearrow View Post
Is this a joke? Hello World programs are usually secure since all they do is write some text and quit...
Code:#include <stdio.h> int retval; int main() { retval=puts("Hello World!"); return 0; }
Comment
-
Originally posted by uid313 View PostI have no idea if there is any vulnerability in that code. Yeah, Hello World programs are very simple so should be secure, but if I wrote one, I wouldn't count on it. The most simple thing in C is very complex, and it is so easy to shoot yourself in the foot, even doing the most basic things.
Comment
-
Originally posted by Weasel View PostWell, the "vulnerability" is in your brain.
But in C it is way to easy to write insecure code and shoot yourself in the foot.
As a pretty dumb guy, I can write code that is probably reasonably secure in other languages, but not in C.
Comment
-
Originally posted by uid313 View PostI want the crypto library to implemented in Rust, so it can be safe.
Originally posted by uid313 View PostC and other languages are too unsafe to trust with crypto.
Comment
Comment