∵∠C=90°,DE⊥AB,AD平分∠CAB,∴CD=DE.又∵AD=AD,∴Rt△ACD≌Rt△AED(HL),∴AC=AE,∴BD+DE=BD+CD=BC.又∵AC=BC,∴AE=BC,∴△BDE的周长=BD+DE+BE=AE+BE=4cm,∴AB=4cm.故填4.