Basic password struct and utilities