Packs the new and old passwords into a fixed-size binary format for SMM (Safety Motion Module) password change operations.
Each password is padded or truncated to 24 bytes.
Returns
A Buffer containing the packed new and old passwords.
Throws
Error if either password contains invalid characters or types.
Parameters
newPassword: string
The new password to be packed. It will be padded or truncated to 24 bytes.
oldPassword: string
The current/old password to be packed. It will be padded or truncated to 24 bytes.
Packs the new and old passwords into a fixed-size binary format for SMM (Safety Motion Module) password change operations. Each password is padded or truncated to 24 bytes.
Returns
A
Buffer
containing the packed new and old passwords.Throws
Error if either password contains invalid characters or types.