Skip to content

Code Standards

Dylan Allbee edited this page Nov 2, 2013 · 10 revisions

We strictly require the following code standards on the CSE Club Website project

Python

  • Version: 2.7.5
  • Style: Python PEP-8
  • Security: To be added
  • Performance: To be added

JavaScript

HTML/CSS

Images

Avoid images in layout as much as possible. Use a PNG file format for images that are used, and make sure that they are 300 dpi so that we can support Retina screens.

Encryption

AES-192 in CFB mode. No exceptions. Encryption keys should be 32 chars with at least a 92 character space (Letters + Digits + Symbols). If you don't understand what this means, do not work on code dealing with encryption

Hashing

  • Passwords: Scrypt. Make absolutely sure that you choose adequate parameters for N, r, and p. Once again, if you don't know what this is, leave password hashing to someone else. A good rule of thumb is that the hash should take at least 250 milliseconds.
  • Checksums: SHA-3
Clone this wiki locally