Security professional with many years of experience with the practical application of cryptographic algorithms and protocols. I've helped with the design of protocols and API's within international standardization bodies. Over 30 years of general experience with computers, starting with MSX Basic at an early age. I've developed in Java for as long as the language exists (Kotlin is looking good too).
Copy/paste security doesn't exist.
All of the high scoring answers on StackOverflow have displayed grave security mistakes.
If the code runs it does not mean it is secure. I would guess that about 10% of the code posted on StackOverflow could be secure. If you want to learn cryptography I highly recommend Crypto I from Dan Boneh at Coursera as a (University level) introductory course.
The most basic and therefore most common security mistakes:
- not understanding the difference between encoding and encryption;
- using keys or IV's directly derived from text / passwords;
- using ECB mode encryption;
- using MD5, DES or other outdated cryptographic algorithms;
- not understanding on how to use an IV / nonce;
- performing password hashing (or key derivation) without applying PBKDF2, bcrypt or scrypt
- using ciphertext that is not protected by an authentication tag;
- thinking that OTP (XOR-encryption) can be made secure (without inventing an inefficient stream cipher);
- encryption without establishing trust (most browser based encryption);
- using textbook RSA or using RSA to directly encrypt messages;
- inventing transport based security instead of using (D)TLS;
- not using a cryptographically secure random number generator.
If you're making any of the above mistakes please hire a professional. Please do not rely solely on StackExchange answers.
Member for 5 years, 3 months
0 profile views
Last seen Oct 22 at 19:14
- Stack Overflow 68.2k 68.2k 1111 gold badges9393 silver badges189189 bronze badges
- Cryptography♦ 63.4k 63.4k 77 gold badges9090 silver badges222222 bronze badges
- Information Security 3.8k 3.8k 1212 silver badges2626 bronze badges
- Super User 1.1k 1.1k 11 gold badge77 silver badges1616 bronze badges
- Code Review 792 792 44 silver badges1212 bronze badges
- View network profile →
Top network posts
- 98 What is the difference between PKCS#5 padding and PKCS#7 padding
- 76 What is the difference between PKCS#5 padding and PKCS#7 padding
- 71 View past notifications
- 68 Are one-time pads crackable in theory?
- 65 How to encrypt and decrypt file in Android?
- 64 What is the difference between .pem , .csr , .key and .crt?
- 56 Byte and char conversion in Java
- View more network posts →