LOS ANGELES (CBS/AP) — A Los Angeles community college has paid a $28,000 ransom after a hacker took student data hostage.

About 1,800 Los Angeles Valley College teachers and staff were locked out of their computers last week, leaving the data of 20,000 students compromised. College administrators elected to pay the $28,000 ransom in bitcoins rather than leave students without their data.

READ MORE: VIDEO: Woman Dragged By Car In Oakland Chinatown After Having Purse Snatched

Officials say it was ultimately cheaper to pay the ransom than to remove the unidentified ransomware virus.

READ MORE: 2 San Francisco Residents Arrested On Drug, Gun Charges Following Pursuits In Fresno County

Computer systems throughout the Valley Glen campus suffered a data breach on Dec. 30 and administrators decided to pay the hackers last week.

The Los Angeles Sheriff’s Department is investigating the cyber-attack.

MORE NEWS: San Francisco-Based Airbnb Reports Huge 4th-Quarter Loss

© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.