Like Owen said,it’s probably not worth it. You can get the apple oem cable for $20. There are $10 cables too,but some of them are not safe in the case of a voltage surge.
open