secret_properties.py 432 B

123456789101112131415161718192021222324
  1. class secret_properties(type):
  2. @property
  3. def hash_hex_length(cls):
  4. return 64
  5. @property
  6. def salt_separator(cls):
  7. return ":"
  8. @property
  9. def salt_length(cls):
  10. return 16
  11. @property
  12. def salt_hex_length(cls):
  13. return cls.salt_length * 2
  14. @property
  15. def hash_rounds(cls):
  16. return 100000
  17. @property
  18. def hash_algorithm(cls):
  19. return "sha256"