EXHIBIT 23.1 CONSENT OF BEARD MILLER COMPANY LLP, INDEPENDENT AUDITORS We consent to the incorporation by reference in the Registration Statements (Form S-3, No. 033-46171, Forms S-8, Nos. 333-68410, 333-61851, 333-09277, and 333-40532) of Codorus Valley Bancorp, Inc. of our report dated January 9, 2004, with respect to the 2003 and 2002 consolidated financial statements of Codorus Valley Bancorp, Inc. incorporated by reference in this Annual Report (Form 10-K) for the year ended December 31, 2003. /s/ Beard Miller Company LLP --------------------------------- Harrisburg, Pennsylvania March 25, 2004 67