frostbite.crypt – Frostbite Authentication Helpers

frostbite.crypt.auth(salt, secret, input)

Given a salt, secret, and input hash, tests whether the input hash matches the hash of the salt and secret.

Parameters:
  • salt – string
  • secret – string
  • input – hex encoded string
Returns:

Boolean

frostbite.crypt.get_salt()

Returns a hex-encoded cryptographically secure random salt string.

Returns:Hex encoded string.
frostbite.crypt.hash_pass(salt, secret)

Given a salt and a secret, returns a hex-encoded MD5 hash of the two strings.

Parameters:
  • salt – string
  • secret – string
Returns:

Hex encoded string.

Previous topic

frostbite.serverstructs – Frostbite Server Information Structures

This Page