312
CWE-312 is cleartext storage of sensitive information.
- Even
- Composite
Where 312 fits
Why 312 is special
It covers passwords in a configuration file and card numbers in a database column, both of which are only discovered after someone else reads them.
Factors & digit properties
- Divisors (16)
- 1, 2, 3, 4, 6, 8, 12, 13, 24, 26, 39, 52, 78, 104, 156, 312
- Prime factorisation
- 2^3 × 3 × 13
- Digit sum
- 6
- Digital root
- 6
Representations
- Decimal
- 312
- Scientific notation
- 3.120 × 10^2
Roman numerals
C C C X I I
Binary
1 0 0 1 1 1 0 0 0
1 × 256 + 0 × 128 + 0 × 64 + 1 × 32 + 1 × 16 + 1 × 8 + 0 × 4 + 0 × 2 + 0 × 1 = 312
Octal
4 7 0
4 × 64 + 7 × 8 + 0 × 1 = 312
Hexadecimal
1 3 8
1 × 256 + 3 × 16 + 8 × 1 = 312
Read as powers of two: 256 + 32 + 16 + 8 = 312.
In historical numeral systems
Egyptian
3 coils of rope, 1 hobble, 2 strokes
3 × 100 + 1 × 10 + 2 × 1 = 312. The signs are simply repeated and added; where they sit on the line is a matter of layout, not value.
Babylonian
5 vertical wedges (sixties place), 1 corner wedge + 2 vertical wedges (units place)
5 × 60 + 12 = 312. Places are separated by a space on the tablet, with the higher place written first.
Greek (Ionic)
tau, then iota, then beta, marked as a numeral
tau-iota-beta + keraia
tau + iota + beta written in descending order and added — the letters carry their values wherever they stand, so this is addition, not place value.
Hebrew numerals
shin, then yod, then bet
shin-yod-bet
shin (300) + yod (10) + bet (2) = 312, written in descending order.
Maya
3 bars (upper, twenties place) over 2 bars + 2 dots (lower, units place)
15 × 20 + 12 = 312. Places stack vertically with the smallest at the bottom, so the upper group is worth twenty times the lower.
Systems that simply cannot reach this value are left out. Where a script needs a font most readers do not have, the reading is given instead of the glyphs — see number systems for each system in full.
Other mathematical patterns
- Abundant number
- Harshad (Niven) number
Related numbers & connections
One weakness is data unprotected at rest and the other data unprotected in transit.
View 319 →Technology & computing
CWE-312 covers storing sensitive information without encryption, including credentials in configuration files and personal data in unprotected database columns.
DocumentedTechnology & computingGeography: International — MITRE CWEPeriod: 2006–
Common questions
Is 312 a prime number?
No, 312 is not prime.
What are the factors of 312?
The factors of 312 are 1, 2, 3, 4, 6, 8, 12, 13, 24, 26, 39, 52, 78, 104, 156, 312.
What is 312 in Roman numerals?
312 in Roman numerals is CCCXII.
About this page's data
Mathematical facts:computed directly from the number's value — nothing to source or verify externally.
Contextual records: 1 reviewer-confirmed record, sourced and reviewed before publication.
Last reviewed: 15 July 2026