patch_seq_crypto_pbkdf2_sha256

Function patch_seq_crypto_pbkdf2_sha256 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_crypto_pbkdf2_sha256( stack: Stack, ) -> Stack
Expand description

Derive a key from a password using PBKDF2-SHA256

Stack effect: ( String String Int – String Bool )

Arguments:

  • password: The password string
  • salt: Salt string (should be unique per user/context)
  • iterations: Number of iterations (recommend 100000+)

Returns:

  • key: Hex-encoded 32-byte key (64 hex characters)
  • success: Bool indicating success

§Safety

Stack must have String, String, Int values on top